/* =========================================================
   Visyron AI  |  Login styles
   Palette: background #ffffff · accent #165efe · ink #000000 · white #ffffff
   ========================================================= */

:root {
    --accent:        #165efe;
    --accent-dark:   #0f4ad1;
    --accent-soft:   #e9f0ff;
    --ink:           #000000;
    --bg:            #ffffff;
    --muted:         #5b6472;
    --line:          #e3e7ee;
    --danger:        #d92d20;
    --danger-soft:   #fdeceb;
    --warn:          #b25e00;
    --warn-soft:     #fff4e5;
    --ok:            #0a7d3c;
    --ok-soft:       #e9f7ef;
    --radius:        16px;
    --shadow:        0 12px 40px rgba(22, 94, 254, .10), 0 2px 8px rgba(0, 0, 0, .04);
}

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

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* Subtle brand glow on a clean white page */
    background-image:
        radial-gradient(circle at 0% 0%,   rgba(22, 94, 254, .08), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(22, 94, 254, .06), transparent 45%);
}

.auth-wrap {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 38px 32px 34px;
    animation: rise .45s ease both;
}

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

/* Logo */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.auth-logo img {
    height: 56px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
}

/* Headings */
.auth-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
}
.auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
    margin: 6px 0 26px;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    padding: 11px 14px;
    border-radius: 11px;
    margin-bottom: 18px;
    line-height: 1.35;
}
.auth-alert i { font-size: 1.05rem; flex: none; }
.auth-alert--error { background: var(--danger-soft); color: var(--danger); }
.auth-alert--warn  { background: var(--warn-soft);   color: var(--warn); }
.auth-alert--ok    { background: var(--ok-soft);     color: var(--ok); }

/* Fields */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.input-shell {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.input-shell > i {
    color: var(--muted);
    font-size: 1.05rem;
    padding: 0 12px;
    flex: none;
}
.input-shell input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--ink);
    padding: 14px 14px 14px 0;
    min-width: 0;
}
.input-shell input::placeholder { color: #9aa3b2; }

.toggle-pass {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.05rem;
    padding: 0 14px;
    cursor: pointer;
    height: 100%;
}
.toggle-pass:hover { color: var(--accent); }

/* Remember / forgot row */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 22px;
    flex-wrap: wrap;
}
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--muted);
    cursor: pointer;
}
.check input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
}
.link {
    font-size: .9rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.link:hover { color: var(--accent-dark); text-decoration: underline; }

/* Primary button */
.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .18s ease, transform .08s ease, box-shadow .18s ease;
    box-shadow: 0 8px 20px rgba(22, 94, 254, .28);
}
.btn-primary:hover  { background: var(--accent-dark); box-shadow: 0 10px 26px rgba(22, 94, 254, .34); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary i { font-size: 1.1rem; }

/* Footer */
.auth-foot {
    margin-top: 22px;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .auth-wrap  { padding: 16px 14px; }
    .auth-card  { padding: 30px 22px 28px; border-radius: 18px; }
    .auth-title { font-size: 1.42rem; }
    .auth-logo img { height: 48px; }
    /* 16px input font-size prevents iOS zoom-on-focus */
    .input-shell input { font-size: 16px; padding: 13px 12px 13px 0; }
    .btn-primary { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
}
