/**
 * Login Page Styles
 */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    gap: var(--spacing-xl);
}

/* ========== LEFT SIDE (Logo & Title) ========== */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-title {
    font-size: 48px;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.text-sky {
    color: var(--secondary-blue);
}

.portal-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

/* ========== STEPPER ========== */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.step-item.active .step-circle {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.step-item.completed .step-circle {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Remove checkmark for a simpler look */

.step-label {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.85;
    font-weight: 500;
}

.step-item.active .step-label {
    color: #ffffff;
    opacity: 1;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #ffffff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 28px;
}

/* ========== STEP CONTENT ========== */
.step-content {
    display: block;
}

.step-content.hidden {
    display: none;
}

/* ========== NAVIGATION BUTTONS ========== */
.step-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-navigation .btn {
    flex: 1;
}

.step-navigation .btn.hidden {
    display: none;
}

/* ========== SUCCESS STATE ========== */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin: 0 0 15px 0;
}

.success-message {
    font-size: 16px;
    color: #6B7280;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* ========== FILE PREVIEW ========== */
.file-preview {
    margin-top: 10px;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 8px;
    text-align: center;
    min-height: 60px;
}

.file-preview:empty {
    display: none;
}

.file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-preview p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

/* ========== FORM SECTIONS ========== */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E5E7EB;
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6B7280;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #F9FAFB;
    border-radius: 8px;
    text-align: center;
}

.file-preview img {
    display: block;
    margin: 0 auto 10px;
}

.file-preview p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

/* ========== RIGHT SIDE (Login Form) ========== */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 5%;
}

.login-card {
    background: var(--primary-blue);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

/* Registration-specific sizing and compact form styles */
.register-card { max-width: 840px; padding: var(--spacing-lg); }
.register-card .form-group { margin-bottom: 12px; }
.register-card .form-input, .register-card .form-input-light, .register-card textarea { padding: 10px 12px; font-size: 14px; }

/* Grid layout for multi-column steps */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 12px; }
.col-span-2 { grid-column: span 2; }

.login-title {
    color: var(--text-light);
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 var(--spacing-lg) 0;
}

/* Form Labels */
.login-card .form-label {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

/* Improve helper text visibility on blue card */
.login-card .form-hint,
.login-card .form-group small {
    color: var(--text-light);
    opacity: 0.9;
}

/* Step 3 text visibility */
.login-card #step-3 .form-hint { color: var(--text-light); opacity: 0.95; }
.login-card #step-3 .file-preview { background: rgba(255,255,255,0.08); }
.login-card #step-3 .file-preview p { color: var(--text-light); opacity: 0.9; }

/* Input with trailing icon button */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-input,
.input-with-icon .form-input-light {
    padding-right: 44px;
}

.icon-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
}

.icon-button:focus { outline: 2px solid rgba(255,255,255,0.6); border-radius: 6px; }

/* Login Footer */
.login-footer {
    margin-top: var(--spacing-md);
    text-align: center;
}

.login-footer p {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 15px;
}

.login-footer a {
    color:var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.login-footer a:hover {
    opacity: 0.8;
}

/* Password requirements checklist (login + register) */
.password-requirements {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.password-requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 6px 0;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.password-requirements .requirement:last-child {
    margin-bottom: 0;
}

.password-requirements .check-icon {
    display: inline-block;
    width: 14px;
}

.password-requirements .requirement.met {
    color: #bbf7d0;
}

.password-requirements .requirement.met .check-icon {
    color: #22c55e;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .login-page {
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-md);
    }

    .login-left {
        align-items: center;
        padding-left: 0;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-icon {
        width: 140px;
        height: 140px;
    }

    .portal-title {
        font-size: 56px;
    }

    .portal-subtitle {
        font-size: 32px;
    }

    .login-right {
        width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 120px;
        height: 120px;
    }

    .portal-title {
        font-size: 44px;
    }

    .portal-subtitle {
        font-size: 28px;
    }

    .login-card {
        padding: var(--spacing-lg);
    }

    /* Collapse grids to single column on tablets/phones */
    .form-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }

    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: var(--spacing-sm);
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    .portal-title {
        font-size: 36px;
    }

    .portal-subtitle {
        font-size: 22px;
    }

    .login-card {
        padding: var(--spacing-md);
    }

    .login-title {
        font-size: 24px;
    }
}

