/* ============================================================
   UPSKILL.ID - AUTHENTICATION PAGES CSS
   ============================================================
   Style untuk: login.html, register.html, verify-email.html
============================================================ */


/* ============================================================
   1. AUTH LAYOUT
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: white;
}

/* Left Panel - Brand & Illustration */
.auth-left {
    display: none;
    flex: 1;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 48px;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .auth-left {
        display: flex;
        flex: 1.2;
    }
}

/* Background decorations */
.auth-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Auth Left - Top: Logo */
.auth-left-header {
    position: relative;
    z-index: 2;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin-bottom: 0;
}

.auth-brand-logo-highlight {
    color: #EAB308;
}

/* Auth Left - Middle: Quote & Image */
.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.auth-quote-icon {
    font-size: 4rem;
    color: rgba(234, 179, 8, 0.5);
    line-height: 1;
    margin-bottom: 16px;
}

.auth-quote-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.auth-quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.auth-quote-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(234, 179, 8, 0.5);
}

.auth-quote-info-name {
    font-weight: 600;
    color: white;
    text-align: left;
}

.auth-quote-info-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

/* Auth Left - Bottom: Achievements */
.auth-left-footer {
    position: relative;
    z-index: 2;
}

.auth-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.auth-achievement {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.auth-achievement:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
    transform: translateY(-4px);
}

.auth-achievement-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: block;
}

.auth-achievement-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #EAB308;
    margin-bottom: 4px;
}

.auth-achievement-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}


/* ============================================================
   2. AUTH RIGHT PANEL (FORM)
   ============================================================ */

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .auth-right {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .auth-right {
        padding: 48px;
    }
}

/* Auth Right - Top */
.auth-right-top {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #1E293B;
}

.auth-mobile-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .auth-mobile-logo {
        display: none;
    }
}

.auth-mobile-logo span {
    color: #EAB308;
}

/* Auth Right - Content */
.auth-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .auth-heading {
        font-size: 2.25rem;
    }
}

.auth-subheading {
    color: #64748B;
    font-size: 1rem;
    margin-bottom: 32px;
}


/* ============================================================
   3. PROGRESS INDICATOR (Register)
   ============================================================ */

.auth-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-progress-step.active {
    color: #1E293B;
}

.auth-progress-step.completed {
    color: #10B981;
}

.auth-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.auth-progress-step.active .auth-progress-dot {
    background: #EAB308;
    color: #1E293B;
}

.auth-progress-step.completed .auth-progress-dot {
    background: #10B981;
    color: white;
}

.auth-progress-line {
    flex: 1;
    height: 2px;
    background: #F1F5F9;
    max-width: 60px;
}


/* ============================================================
   4. AUTH FORM
   ============================================================ */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Group */
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
}

.auth-form-label-link {
    color: #EAB308;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-form-label-link:hover {
    color: #CA8A04;
    text-decoration: underline;
}

/* Input Wrapper */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1E293B;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.auth-input::placeholder {
    color: #94A3B8;
}

.auth-input:focus {
    border-color: #EAB308;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

.auth-input.error {
    border-color: #EF4444;
}

.auth-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-input.success {
    border-color: #10B981;
}

/* Password Toggle Button */
.auth-input-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    font-size: 1.125rem;
    transition: color 0.2s ease;
    z-index: 1;
}

.auth-input-toggle:hover {
    color: #1E293B;
}

/* Error message */
.auth-form-error {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #EF4444;
    font-size: 0.8125rem;
    margin-top: 4px;
    animation: slideDown 0.2s ease;
}

.auth-form-helper {
    color: #64748B;
    font-size: 0.8125rem;
    margin-top: 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   5. PASSWORD STRENGTH INDICATOR
   ============================================================ */

.password-strength {
    margin-top: 8px;
}

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.password-strength-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.password-strength-bar.filled-1 {
    background: #EF4444;
}

.password-strength-bar.filled-2 {
    background: #F59E0B;
}

.password-strength-bar.filled-3 {
    background: #EAB308;
}

.password-strength-bar.filled-4 {
    background: #10B981;
}

.password-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.password-strength-label-text {
    color: #64748B;
}

.password-strength-label-value {
    color: #64748B;
}

.password-strength-label-value.strength-1 { color: #EF4444; }
.password-strength-label-value.strength-2 { color: #F59E0B; }
.password-strength-label-value.strength-3 { color: #EAB308; }
.password-strength-label-value.strength-4 { color: #10B981; }

/* Requirements Checklist */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #F8FAFC;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748B;
    transition: color 0.2s ease;
}

.password-requirement.met {
    color: #10B981;
}

.password-requirement-check {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E2E8F0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.password-requirement.met .password-requirement-check {
    background: #10B981;
}


/* ============================================================
   6. CHECKBOX & RADIO
   ============================================================ */

/* Custom Checkbox */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #EAB308;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.4;
    cursor: pointer;
}

.auth-checkbox-label a {
    color: #EAB308;
    text-decoration: none;
    font-weight: 600;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* Role Selection Grid */
.auth-role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.auth-role-option {
    position: relative;
    cursor: pointer;
}

.auth-role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-role-card {
    padding: 14px 12px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.auth-role-option:hover .auth-role-card {
    border-color: #EAB308;
    background: #FEFCE8;
}

.auth-role-option input[type="radio"]:checked + .auth-role-card {
    border-color: #EAB308;
    background: #FEFCE8;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

.auth-role-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
}

.auth-role-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1E293B;
}


/* ============================================================
   7. AUTH BUTTONS
   ============================================================ */

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: #EAB308;
    color: #1E293B;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(234, 179, 8, 0.2);
}

.auth-btn:hover:not(:disabled) {
    background: #FDE047;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(234, 179, 8, 0.3);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #E2E8F0;
    color: #64748B;
    box-shadow: none;
}

.auth-btn-loading {
    pointer-events: none;
}

.auth-btn-loading .auth-btn-text {
    display: none;
}

.auth-btn-loading .auth-btn-loader {
    display: inline-flex;
}

.auth-btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.auth-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(30, 41, 59, 0.3);
    border-top-color: #1E293B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ============================================================
   8. DIVIDER & SOCIAL LOGIN
   ============================================================ */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #94A3B8;
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.auth-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-social-btn {
    padding: 12px 16px;
    background: white;
    color: #1E293B;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.auth-social-btn:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.auth-social-icon {
    font-size: 1.125rem;
}


/* ============================================================
   9. AUTH FOOTER (Link ke halaman lain)
   ============================================================ */

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    color: #64748B;
    font-size: 0.9375rem;
}

.auth-footer a {
    color: #EAB308;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #CA8A04;
    text-decoration: underline;
}


/* ============================================================
   10. VERIFY EMAIL PAGE
   ============================================================ */

.verify-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.verify-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: verifyFadeIn 0.6s ease-out;
}

@keyframes verifyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verify-icon-wrapper {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #FEF9C3 0%, #FDE047 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    animation: bounce 2s infinite;
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.verify-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
}

.verify-subtitle {
    color: #64748B;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.verify-email {
    display: inline-block;
    padding: 12px 20px;
    background: #FEF9C3;
    border: 2px solid #FDE047;
    border-radius: 10px;
    color: #1E293B;
    font-weight: 700;
    margin: 8px 0 24px;
    font-size: 0.9375rem;
}

.verify-description {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.verify-secondary-action {
    color: #64748B;
    font-size: 0.875rem;
}

.verify-resend-btn {
    background: none;
    border: none;
    color: #EAB308;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    font-size: inherit;
    transition: color 0.2s ease;
}

.verify-resend-btn:hover:not(:disabled) {
    color: #CA8A04;
    text-decoration: underline;
}

.verify-resend-btn:disabled {
    color: #94A3B8;
    cursor: not-allowed;
}

.verify-change-email {
    display: inline-block;
    margin-top: 12px;
    color: #64748B;
    font-size: 0.8125rem;
    text-decoration: underline;
    cursor: pointer;
}

.verify-change-email:hover {
    color: #1E293B;
}

/* Tips box */
.verify-tips {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    margin-top: 24px;
}

.verify-tips-title {
    font-weight: 700;
    color: #1E40AF;
    font-size: 0.875rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: #1E3A8A;
    line-height: 1.6;
}

.verify-tips-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 4px;
}

.verify-tips-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3B82F6;
    font-weight: 700;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .auth-right {
        padding: 24px 20px;
    }
    
    .auth-heading {
        font-size: 1.75rem;
    }
    
    .verify-card {
        padding: 32px 24px;
    }
    
    .verify-title {
        font-size: 1.5rem;
    }
    
    .auth-achievements {
        grid-template-columns: 1fr;
    }
    
    .password-requirements {
        grid-template-columns: 1fr;
    }
}