/* ============================================
   Auth Pages - Professional Split-Screen Layout
   Wulandari Event Service WO
   ============================================ */

:root {
    --auth-primary: #0d9488;
    --auth-primary-dark: #0f766e;
    --auth-primary-darker: #134e4a;
    --auth-accent: #14b8a6;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-border-focus: #0d9488;
    --auth-bg: #f8fafc;
    --auth-danger: #dc2626;
    --auth-danger-bg: #fef2f2;
    --auth-success: #16a34a;
    --auth-success-bg: #f0fdf4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--auth-text);
    background: var(--auth-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--auth-primary);
    transition: color .15s ease;
}

a:hover {
    color: var(--auth-primary-dark);
}

/* ===== Split-Screen Layout ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== Brand Panel (left) ===== */
.auth-brand {
    position: relative;
    background: linear-gradient(135deg, var(--auth-primary-darker) 0%, var(--auth-primary-dark) 50%, var(--auth-primary) 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(20,184,166,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.auth-brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
}

.auth-brand-tag {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-brand-center {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.auth-brand-center h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #fff;
}

.auth-brand-center p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    margin: 0 0 32px 0;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.auth-brand-features li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--auth-accent);
    flex-shrink: 0;
}

.auth-brand-bottom {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* ===== Form Panel (right) ===== */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 48px;
    background: #fff;
}

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

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

.auth-form-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 8px 0;
}

.auth-form-header p {
    font-size: 14px;
    color: var(--auth-text-muted);
    margin: 0;
}

/* Alerts */
.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-error {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: var(--auth-success-bg);
    color: var(--auth-success);
    border: 1px solid #bbf7d0;
}

.auth-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.auth-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    font-size: 13px;
    font-family: inherit;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input:focus {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.auth-input::placeholder {
    color: #94a3b8;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: color .15s ease;
}

.toggle-password:hover {
    color: var(--auth-primary);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 2px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
    margin: 0;
}

.auth-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 1px 2px rgba(13,148,136,0.2);
}

.auth-btn:hover {
    background: var(--auth-primary-dark);
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* Google button */
.auth-btn-google {
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.auth-btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    text-decoration: none;
}

.auth-btn-google svg {
    width: 18px;
    height: 18px;
}

/* Footer below form */
.auth-form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--auth-text-muted);
}

.auth-form-footer a {
    font-weight: 600;
}

.auth-copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 32px 28px;
        min-height: auto;
    }

    .auth-brand-center {
        display: none;
    }

    .auth-brand-bottom {
        display: none;
    }

    .auth-form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .auth-brand {
        padding: 24px 20px;
    }

    .auth-form-panel {
        padding: 32px 20px;
    }

    .auth-form-header h1 {
        font-size: 22px;
    }
}
