/* =========================
   AUTH PAGES (Login/Register/Logout)
   Modernized auth.css
   ========================= */

.auth {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 16px;

    /* background that looks modern but not noisy */
    background:
            radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, 0.20), transparent 60%),
            radial-gradient(900px 500px at 90% 20%, rgba(16, 185, 129, 0.18), transparent 55%),
            radial-gradient(900px 500px at 40% 90%, rgba(244, 114, 182, 0.12), transparent 50%),
            linear-gradient(180deg, #0b1020 0%, #0b1020 30%, #0f172a 100%);
    color: #0b1020;
}

/* Optional: add a background image overlay if you want (no markup changes needed)
   Put an image at /images/auth-bg.jpg and uncomment:

.auth {
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.75), rgba(15, 23, 42, 0.88)),
    url("/images/auth-bg.jpg") center/cover no-repeat;
}
*/

.auth .box {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.35),
            0 1px 0 rgba(255, 255, 255, 0.6) inset;
    backdrop-filter: blur(10px);
}

.auth .box h1 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.auth .box p {
    margin: 10px 0;
    color: #334155;
    line-height: 1.4;
}

.auth label {
    display: block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.auth input,
.auth select {
    width: 100%;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.auth input:focus,
.auth select:focus {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.auth button {
    width: 100%;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.95);
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.06s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.auth button:hover {
    opacity: 0.95;
}

.auth button:active {
    transform: translateY(1px);
}

.auth a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
}

.auth a:hover {
    text-decoration: underline;
}

/* divider look */
.auth hr {
    border: 0;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
    margin: 16px 0;
}

/* messages */
.auth .error,
.auth .success,
.auth .info {
    margin-top: 12px;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
}

.auth .error {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid rgba(252, 165, 165, 0.9);
}

.auth .success {
    color: #065f46;
    background: rgba(209, 250, 229, 0.95);
    border: 1px solid rgba(110, 231, 183, 0.95);
}

.auth .info {
    color: #1e40af;
    background: rgba(219, 234, 254, 0.95);
    border: 1px solid rgba(147, 197, 253, 0.95);
}

.auth .field-error {
    color: #991b1b;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
}

/* optional: helper text / small footer area */
.auth .muted {
    color: #64748b;
    font-size: 13px;
}

/*for verify success:*/
.auth .btn-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.95);
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}
.auth .btn-link:hover { opacity: 0.95; }
.auth .btn-link:active { transform: translateY(1px); }

.auth .warn {
    color: #92400e;
    background: rgba(254, 243, 199, 0.95);
    border: 1px solid rgba(252, 211, 77, 0.95);
}