/* ============================================
   SIDODASH - AUTH PAGES (UNIFIED)
   Selaras dengan Landing Page Design System
   
   Color Palette (sama dengan landing.css):
   - Primary Blue: #3E64FF
   - Primary Light: #5A7FFF  
   - Cyan: #5EDFFF
   - Cyan Light: #B2FCFF
   - Cyan Lighter: #ECFCFF
   ============================================ */

/* ===== DESIGN SYSTEM (inherited from landing) ===== */
:root {
    /* Colors - sama persis dengan landing.css */
    --primary-blue: #3E64FF;
    --primary-light: #5A7FFF;
    --cyan: #5EDFFF;
    --cyan-light: #B2FCFF;
    --cyan-lighter: #ECFCFF;
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text-medium: #475569;
    --text-light: #64748b;
    
    /* Background */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    
    /* Border Radius System */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    
    /* Shadow System */
    --shadow-sm: 0 2px 8px rgba(62, 100, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(62, 100, 255, 0.1);
    --shadow-lg: 0 8px 30px rgba(62, 100, 255, 0.12);
    --shadow-xl: 0 15px 50px rgba(62, 100, 255, 0.15);
    --shadow-cyan: 0 8px 30px rgba(94, 223, 255, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
}

/* ===== BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== AUTH LAYOUT ===== */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
}

/* ===== LEFT SIDE - BRANDING (sama style dengan Hero) ===== */
.auth-branding {
    background: linear-gradient(135deg, #3E64FF 0%, #5A7FFF 50%, #3E64FF 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }
}

/* Background effects - sama dengan hero */
.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(94, 223, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(94, 223, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
    background-size: 60px 60px;
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

/* Logo - sama style dengan navbar-logo */
.branding-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #5EDFFF 0%, #3E64FF 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.branding-logo:hover {
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.branding-logo svg {
    width: 40px;
    height: 40px;
}

.branding-title {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.branding-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Features - glass cards seperti di landing */
.branding-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.branding-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.25);
}

.branding-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.branding-feature-text {
    flex: 1;
}

.branding-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.branding-feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== RIGHT SIDE - FORM ===== */
.auth-form-side {
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    min-height: 100vh;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .mobile-logo {
        display: flex;
    }
}

.mobile-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5EDFFF 0%, #3E64FF 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(62, 100, 255, 0.3);
}

.mobile-logo-icon svg {
    width: 28px;
    height: 28px;
}

.mobile-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ===== FORM CARD ===== */
.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    margin-bottom: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-link {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input {
    width: 100%;
    background: var(--bg-light);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 14px 14px 46px;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:hover {
    border-color: #cbd5e1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(62, 100, 255, 0.1);
}

.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
    color: var(--primary-blue);
}

/* Error State */
.form-input.is-error {
    border-color: var(--error);
    background: #fef2f2;
}

.form-input.is-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--error);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.form-hint i {
    font-size: 12px;
}

.required-mark {
    color: var(--error);
    font-weight: 500;
}

/* Password Toggle */
.form-input.has-toggle {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.password-toggle:hover {
    background: var(--bg-subtle);
    color: var(--text-medium);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
}

/* ===== BUTTONS - sama style dengan landing ===== */
.btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3E64FF 0%, #5A7FFF 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(62, 100, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 223, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(62, 100, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Loading State */
.btn-primary.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-primary.is-loading .btn-text {
    visibility: hidden;
}

.btn-primary.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Secondary Button */
.btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: var(--text-medium);
    padding: 16px 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(62, 100, 255, 0.03);
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ===== BACK LINK ===== */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-blue);
    background: rgba(62, 100, 255, 0.05);
}

.back-link i {
    transition: transform var(--transition-fast);
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-form-side {
        padding: 32px 24px;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-xl);
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 20px;
    }
}

/* ===== ANIMATIONS ===== */
.auth-card {
    animation: fadeInUp 0.5s var(--transition-smooth);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.branding-feature {
    animation: fadeInLeft 0.5s var(--transition-smooth) backwards;
}

.branding-feature:nth-child(1) { animation-delay: 0.1s; }
.branding-feature:nth-child(2) { animation-delay: 0.2s; }
.branding-feature:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
