/* General styling */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
.page-title {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 0.5rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.page-title .logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.page-title h1 {
    margin: 0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

/* Login container styling */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    margin-top: 80px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.login-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.login-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.login-box h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 3px;
}

/* Form styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover:not(:disabled) {
    color: #3498db;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-toggle i {
    font-size: 16px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

/* Footer styling */
.main-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-tagline {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.footer-info {
    font-size: 0.9rem;
    color: #ecf0f1;
}

.footer-info p {
    margin: 5px 0;
}

/* Button separator styling */
.button-separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #7f8c8d;
}

.button-separator::before,
.button-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.button-separator span {
    padding: 0 10px;
    font-size: 14px;
}

/* Applicant button styling */
.applicant-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.applicant-button:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
}

.applicant-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.applicant-button:hover i {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .login-box {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.2rem;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .login-box h2 {
        font-size: 1.5rem;
    }
}

/* Signup button styling */
.signup-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e50, #27ae60);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.signup-button:hover {
    background: linear-gradient(135deg, #27ae60, #2c3e50);
    transform: translateY(-2px);
}

.signup-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.signup-button:hover i {
    transform: scale(1.2);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 18px;
}

.modal-content .submit-button {
    margin-top: 10px;
}

.modal-content span[onclick] {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 22px;
}

/* Signup Modal Styling */
.signup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.signup-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.signup-modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    color: white;
    position: relative;
}

.signup-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.signup-header-icon i {
    font-size: 2rem;
    color: white;
}

.signup-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.signup-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
}

.signup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.signup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.signup-form {
    padding: 30px;
}

.signup-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.signup-form-group {
    margin-bottom: 0;
}

.signup-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.signup-form-group label i {
    color: #3498db;
    font-size: 0.9rem;
}

.signup-form-group input,
.signup-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.signup-form-group input:focus,
.signup-form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.signup-form-group input::placeholder {
    color: #adb5bd;
}

.signup-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233498db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.signup-submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-submit-button:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.signup-submit-button:active {
    transform: translateY(0);
}

.signup-submit-button i {
    font-size: 1.1rem;
}

/* Responsive adjustments for signup modal */
@media (max-width: 768px) {
    .signup-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .signup-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .signup-modal-header {
        padding: 25px 20px;
    }
    
    .signup-form {
        padding: 25px 20px;
    }
    
    .signup-header-icon {
        width: 60px;
        height: 60px;
    }
    
    .signup-header-icon i {
        font-size: 1.5rem;
    }
    
    .signup-modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Ensure SweetAlert2 appears above signup modal */
.swal2-container {
    z-index: 3000 !important;
}

.swal2-container.swal2-backdrop-show {
    z-index: 3000 !important;
}