@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

/* ============================================================
   ASLI auth screens — "fresh water / laundry" theme
   Shared by forget-password and reset-password.
   Deep teal-aqua atmosphere + frosted glass card.
   ============================================================ */
:root {
    --ink: #0b2530;
    --ink-soft: #4a6470;
    --ink-faint: #8aa1ab;
    --line: #e3edf1;
    --surface: #ffffff;
    --aqua: #06b6d4;
    --aqua-deep: #0e7490;
    --teal: #14b8a6;
    --emerald: #10b981;
    --rose: #f43f5e;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.auth-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 720px at 14% 8%, rgba(20, 184, 166, .38), transparent 55%),
        radial-gradient(1000px 820px at 88% 16%, rgba(6, 182, 212, .34), transparent 55%),
        radial-gradient(900px 720px at 50% 108%, rgba(99, 102, 241, .26), transparent 60%),
        linear-gradient(155deg, #052532 0%, #0a3a4a 48%, #0e7490 100%);
}

/* faint film grain for depth */
body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- floating soap bubbles ---------- */
.auth-bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-bubbles span {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 60%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, .18);
    animation: bubble-rise linear infinite;
}

.auth-bubbles span:nth-child(1) { left: 8%;  width: 46px; height: 46px; animation-duration: 19s; animation-delay: 0s; }
.auth-bubbles span:nth-child(2) { left: 20%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: 3s; }
.auth-bubbles span:nth-child(3) { left: 34%; width: 70px; height: 70px; animation-duration: 24s; animation-delay: 1s; }
.auth-bubbles span:nth-child(4) { left: 52%; width: 30px; height: 30px; animation-duration: 17s; animation-delay: 6s; }
.auth-bubbles span:nth-child(5) { left: 66%; width: 54px; height: 54px; animation-duration: 21s; animation-delay: 2s; }
.auth-bubbles span:nth-child(6) { left: 78%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 5s; }
.auth-bubbles span:nth-child(7) { left: 88%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: 8s; }
.auth-bubbles span:nth-child(8) { left: 44%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: 4s; }

@keyframes bubble-rise {
    0%   { transform: translateY(0) translateX(0) scale(.6); opacity: 0; }
    12%  { opacity: .9; }
    50%  { transform: translateY(-55vh) translateX(22px) scale(1); }
    88%  { opacity: .7; }
    100% { transform: translateY(-112vh) translateX(-14px) scale(1.05); opacity: 0; }
}

/* ---------- card ---------- */
.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 446px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 26px;
    padding: 38px 36px 30px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .7) inset,
        0 36px 80px -28px rgba(3, 22, 30, .65);
    animation: card-in .7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(20px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- brand ---------- */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    padding: 4px;
    box-shadow: 0 8px 20px -8px rgba(14, 116, 144, .55);
    border: 1px solid var(--line);
}

.auth-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-brand .brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -.01em;
}

.auth-brand .brand-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-faint);
}

/* ---------- heading ---------- */
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--aqua-deep);
    margin-bottom: 10px;
}

.auth-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--aqua), var(--teal));
}

.auth-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 8px;
    color: var(--ink);
}

.auth-desc {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ---------- fields ---------- */
.auth-field {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: field-in .55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.auth-field.s1 { animation-delay: .12s; }
.auth-field.s2 { animation-delay: .19s; }
.auth-field.s3 { animation-delay: .26s; }
.auth-actions  { animation: field-in .55s cubic-bezier(.2, .8, .2, 1) .33s both; }

@keyframes field-in {
    to { opacity: 1; transform: translateY(0); }
}

.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .lead-ico {
    position: absolute;
    left: 15px;
    color: var(--ink-faint);
    font-size: 14px;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #f7fbfc;
    color: var(--ink);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    padding: 0 16px 0 42px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input::placeholder {
    color: var(--ink-faint);
    font-weight: 500;
}

.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, .14);
}

.auth-toggle {
    position: absolute;
    right: 6px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
    border-radius: 10px;
    transition: color .2s, background .2s;
}

.auth-toggle:hover {
    color: var(--aqua-deep);
    background: rgba(6, 182, 212, .1);
}

/* password input keeps room for the toggle */
.auth-input.has-toggle {
    padding-right: 48px;
}

/* ---------- submit ---------- */
.auth-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-deep) 55%, var(--teal) 100%);
    background-size: 160% 160%;
    box-shadow: 0 16px 30px -12px rgba(14, 116, 144, .7);
    transition: transform .2s, box-shadow .2s, background-position .5s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 22px 38px -14px rgba(14, 116, 144, .8);
}

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

.auth-btn:disabled,
.auth-btn.is-loading {
    opacity: .82;
    cursor: progress;
    transform: none !important;
    box-shadow: 0 10px 22px -12px rgba(14, 116, 144, .6);
}

/* full-screen submit lock overlay */
.auth-lock {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 37, 50, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: lock-in .2s ease both;
}

.auth-lock-box {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    display: grid;
    place-items: center;
    color: var(--aqua-deep);
    font-size: 24px;
    box-shadow: 0 22px 54px -20px rgba(3, 22, 30, .7);
}

@keyframes lock-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- inline meta row (e.g. forgot-password link) ---------- */
.auth-meta {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}

.auth-meta a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--aqua-deep);
    text-decoration: none;
    transition: color .2s;
}

.auth-meta a:hover {
    color: var(--teal);
}

/* ---------- footer link ---------- */
.auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.auth-foot a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aqua-deep);
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.auth-foot a:hover {
    gap: 11px;
    color: var(--teal);
}

/* small print under the card */
.auth-copyright {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .02em;
}

.auth-stack {
    width: 100%;
    max-width: 446px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 480px) {
    .auth-card { padding: 30px 24px 26px; border-radius: 22px; }
    .auth-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
