﻿/* ==============================
   Modern Auth — Fluid Style
   ============================== */

/* ------- CSS Vars ------- */
:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #0f172a; /* slate-900 */
    --ink-2: #1f2937; /* gray-800 */
    --muted: #6b7280; /* gray-500 */
    --brand: #3b5bff; /* indigo/blue blend */
    --brand-2: #2f49d8;
    --ring: rgba(59,91,255,.12);
    --card-shadow: 0 20px 40px rgba(2,6,23,.06), 0 2px 6px rgba(2,6,23,.04);
}

/* ------- Reset-ish ------- */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1200px 800px at 70% 20%, #eef2ff 0%, #f5f7fb 45%, #f5f7fb 100%);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    color: var(--ink);
}

/* Make ASP.NET validators look nice */
.field-error {
    color: #dc2626;
    font-size: 12px;
    margin: 6px 4px 0
}

.auth-error {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ------- Shell ------- */
.fluid-shell {
    max-width: 1200px;
    margin: 48px auto;
    background: var(--panel);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 560px;
}

/* Left column (form) */
.fluid-left {
    padding: 44px 56px 56px 56px;
    display: flex;
    flex-direction: column;
}

/* Right column (visual) */
.fluid-right {
    position: relative;
    background: radial-gradient(1000px 700px at 70% 20%, #e9eeff 0%, #fafbff 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    max-width: 520px;
    width: 80%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 50px rgba(59,91,255,.25));
    user-select: none;
}

/* ------- Header / Branding ------- */
.brand-stack {
    margin-bottom: 12px
}

.brand-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.welcome {
    margin: 4px 0 2px;
    font-size: 28px;
    letter-spacing: .2px
}

.subtle {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 18px
}

/* ------- Form layout ------- */
.form-field {
    margin: 14px 0 18px
}

    .form-field label {
        display: block;
        font-weight: 700;
        font-size: 13px;
        color: var(--ink);
        margin: 0 0 8px 2px;
        letter-spacing: .2px;
    }

.field-hint {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 4px 0
}

/* fancy input container */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(#fff,#fff) padding-box, radial-gradient(120% 120% at 20% 0%, #dbeafe, #e9e9ff) border-box;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 22px rgba(15,23,42,.06);
}

/* actual input */
.input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 14px 44px 14px 44px; /* icon + suffix space */
    border-radius: 12px;
    background: #fff;
    font-size: 14.5px;
    letter-spacing: .2px;
}

    .input::placeholder {
        color: #9aa3b2
    }

/* focus glow + gradient border */
.input-wrap:focus-within {
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(45deg, #93c5fd, #a5b4fc) border-box;
    box-shadow: 0 0 0 6px var(--ring), 0 8px 22px rgba(59,91,255,.15);
}

/* left icons */
.i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: .70;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* icon variants (inline SVGs) */
.i-mail {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23677' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/><path d='m4 7 6 4 6-4'/></svg>");
}

.i-lock {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23677' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='12' height='8' rx='2'/><path d='M6 8V6a3 3 0 0 1 6 0v2'/></svg>");
}

.i-pin {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23677' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 9c0 1.657-1.79 4.5-3 6-1.167-1.5-3-4.343-3-6a3 3 0 1 1 6 0z'/><circle cx='9' cy='9' r='1.6'/></svg>");
}

/* right-side small button (Show/Hide) */
.input-suffix {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

    .input-suffix:hover {
        background: #e6ecf4
    }

/* ------- Buttons ------- */
.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer
}

.btn-block {
    width: 100%
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 10px 22px rgba(59,91,255,.28);
    transition: transform .06s ease, filter .2s ease;
}

    .btn-primary:hover {
        filter: brightness(.98)
    }

    .btn-primary:active {
        transform: translateY(1px)
    }

/* links & small text */
.link {
    color: var(--brand);
    text-decoration: none
}

    .link:hover {
        text-decoration: underline
    }

.muted {
    color: var(--muted)
}

.tiny {
    font-size: 12px
}

/* dividers / details */
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9edf7, transparent);
    margin: 22px 0;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.faq p {
    margin: 4px 0 10px
}

/* ------- Responsive ------- */
@media (max-width: 1024px) {
    .fluid-shell {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .fluid-right {
        display: none
    }

    .fluid-left {
        padding: 36px 28px 40px
    }

    .brand-logo {
        width: 120px
    }
}

@media (max-width: 420px) {
    .input {
        padding: 13px 42px 13px 42px;
        font-size: 14px
    }

    .brand-logo {
        width: 108px
    }

    .welcome {
        font-size: 24px
    }
}
