/* ===================================================
   BorangBot — auth.css  (login / register pages)  Premium UI
   =================================================== */

body {
    background: linear-gradient(135deg, #f4f6fb 0%, #eef2ff 50%, #e0e7ff 100%);
    background-size: 400% 400%;
    animation: auth-bg-shift 10s ease infinite;
    min-height: 100vh;
}
@keyframes auth-bg-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 60px);
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2.75rem 2.25rem;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 16px 48px rgba(67,97,238,.13), 0 2px 8px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
    animation: card-in .3s cubic-bezier(.34,1.3,.64,1);
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #6366f1, #818cf8);
    border-radius: 18px 18px 0 0;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: .5rem;
    letter-spacing: -.025em;
    background: linear-gradient(135deg, #4361ee, #6366f1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--color-text);
    letter-spacing: -.015em;
}

.auth-desc {
    font-size: .875rem;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-form .form-group { margin-bottom: 1.15rem; }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--color-muted);
}
.auth-links a { color: var(--color-primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ---- OAuth buttons ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--color-muted);
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--color-border);
    background: #fff;
    color: #3c4043;
    transition: box-shadow .18s, border-color .18s;
    margin-bottom: .5rem;
}
.btn-oauth:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    border-color: #aab4be;
}

/* ---- Trial callout (register page) ---- */
.auth-trial-callout {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    padding: .7rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: #3730a3;
    line-height: 1.5;
}
.auth-trial-callout strong {
    display: block; font-size: .9rem; margin-bottom: .2rem; color: #312e81;
}

/* ---- Trust badges (register page) ---- */
.auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem .75rem;
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
}
.auth-trust span {
    font-size: .72rem;
    color: var(--color-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ---- Benefits list (register page) ---- */
.auth-benefits {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .5rem;
}
.auth-benefits li {
    font-size: .8rem;
    color: #166534;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Password visibility toggle ---- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6rem; width: 100%; box-sizing: border-box; }
.pw-toggle {
    position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1rem; padding: .15rem; line-height: 1;
    opacity: .4; transition: opacity .15s;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { opacity: .85; }

/* ---- Mobile auth fixes ---- */
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.25rem 1.5rem; border-radius: 14px; }
    .auth-benefits { grid-template-columns: 1fr; }
}
