/* ==========================================================================
   LENTERA UMKM — Authentication Stylesheet (auth.css)
   Clean 2-Column SaaS Layout (Depa Cloud Reference) for Login & Register
   ========================================================================== */

:root {
    --primary-blue: #1e3a8a;
    --primary-hover: #172554;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-input: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #005ce6;
    color: #ffffff;
}

::-moz-selection {
    background-color: #005ce6;
    color: #ffffff;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    color: #ffffff;
    background: linear-gradient(-45deg, #00103a, #002db3, #005ce6, #0084ff, #0a2569, #001b52);
    background-size: 350% 350%;
    animation: animateGradientBg 12s ease infinite alternate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ── Ambient Cursor Spotlight ── */
.auth-cursor-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    height: 700px;
    margin-left: -350px;
    margin-top: -350px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 246, 254, 0.15) 0%,
        rgba(0, 132, 255, 0.18) 28%,
        rgba(0, 45, 179, 0.08) 55%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 1;
    filter: blur(30px);
    will-change: transform;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

/* ── 2-Column Auth Layout ── */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(20px, 4vw, 80px);
    position: relative;
    z-index: 2;
}

.auth-container {
    width: 100%;
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* ── Sisi Kiri: Hero Text ── */
.auth-left-hero {
    flex: 1;
    max-width: 480px;
}

.hero-headline {
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0, 15, 60, 0.4);
}

.hero-subtext {
    font-size: clamp(14.5px, 1.25vw, 16.5px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 15, 60, 0.25);
}

/* ── Sisi Kanan: White Floating Card ── */
.auth-card-wrap {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 10, 50, 0.35);
    padding: 38px 34px 34px 34px;
    color: var(--text-dark);
    transition: transform 0.25s ease;
    position: relative;
}

/* Top Brand Logo Centered */
.card-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-logo-link:hover {
    transform: scale(1.03);
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.brand-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #0b1a3d;
    letter-spacing: -0.025em;
}

/* Form Heading */
.form-heading {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: -0.02em;
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
    text-align: left;
}

.input-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

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

.input-control:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

/* Password Input Wrapper with Eye Toggle */
.password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrap .input-control {
    padding-right: 42px;
}

.btn-toggle-eye {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
}

.btn-toggle-eye:hover {
    color: #475569;
}

/* Forgot Password Row */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
    margin-bottom: 18px;
}

.link-forgot {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.18s ease;
}

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

/* Primary Submit Button (Dark Blue Solid) */
.btn-submit-primary {
    width: 100%;
    height: 44px;
    background: var(--primary-blue);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.btn-submit-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.btn-submit-primary:active {
    transform: scale(0.98);
}

/* Google OAuth Button Only */
.btn-google-oauth {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    margin-bottom: 22px;
    text-decoration: none;
}

.btn-google-oauth:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-google-oauth:active {
    transform: scale(0.98);
}

.google-svg-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* Terms Agreement */
.terms-text,
.terms-note {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
    margin-bottom: 16px;
}

.terms-text a,
.terms-note a {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms-text a:hover,
.terms-note a:hover {
    text-decoration: underline;
}

/* Switch Link at Card Bottom */
.card-switch-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.link-switch-auth {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: text-decoration 0.18s ease;
}

.link-switch-auth:hover {
    text-decoration: underline;
}

/* ── Verification State: "You're Almost Done" ── */
.verify-view {
    display: none;
    text-align: center;
    animation: fadeInView 0.25s ease;
}

.verify-view.is-active {
    display: block;
}

.signup-view.is-hidden {
    display: none;
}

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

.verify-illustration {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-heading {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: -0.02em;
}

.verify-subtext {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
}

.verify-subtext strong {
    color: #0f172a;
    font-weight: 600;
    word-break: break-all;
}

.resend-countdown-text {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-bottom: 12px;
}

/* ── Notification Toast ── */
.toast-notify {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.toast-notify.is-shown {
    transform: translateY(0);
    opacity: 1;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 860px) {
    .auth-container {
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        text-align: center;
    }

    .auth-left-hero {
        max-width: 100%;
    }

    .hero-headline {
        font-size: 32px;
    }

    .auth-card-wrap {
        max-width: 400px;
    }

    .auth-card {
        padding: 30px 24px 26px 24px;
    }
}
