﻿﻿:root {
    --bg-top: #bfe7ff;
    --bg-bottom: #ffffff;

    --card-bg: rgba(255, 255, 255, 0.74);
    --card-border: rgba(15, 23, 42, 0.08);

    --text: #0f172a;
    --muted: #64748b;

    --primary: #111827;
    --focus: rgba(2, 132, 199, 0.22);

    --danger: #b91c1c;
    --success: #15803d;

    --shadow: 0 22px 60px rgba(2, 6, 23, 0.18);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbfd, #f2f6fa);
}

body::before{
    content:"";
    position:absolute;
    inset:0;
    background: url("/auth/bg-waves.svg") center / cover no-repeat;
    opacity: .22;
    pointer-events:none;
}

body::after{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(900px 420px at 15% 0%, rgba(31,182,213,.06), transparent 55%);
    pointer-events:none;
}


.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
}

.auth-card {
    width: min(460px, 100%);
    background: var(--card-bg);
    padding: 28px 30px 26px 30px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(31,182,213,.25);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 18px;
}

.auth-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px auto;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.auth-logo {
    height: 66px;
    width: auto;
    opacity: 0.9;
}

.auth-headline {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.auth-subline {
    margin: 8px auto 0 auto;
    max-width: 42ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.auth-card-body {
    margin-top: 18px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 6px;
}

input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    outline: none;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

input::placeholder {
    color: rgba(100, 116, 139, 0.90);
}

input:focus {
    border-color: rgba(2, 132, 199, 0.55);
    box-shadow: 0 0 0 4px var(--focus);
    background: rgba(255, 255, 255, 0.92);
}

.actions {
    display: flex;
    gap: 12px;
}

.actions--right {
    justify-content: flex-end;
}

.actions--center {
    justify-content: center;
}

.link {
    font-size: 12px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.72);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.86));
    color: #fff;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.18);
}

.btn-primary:hover {
    filter: brightness(1.02);
}

.btn-primary:active {
    transform: translateY(0.5px);
}

.btn-block {
    width: 100%;
}

.message {
    margin-top: 6px;
    padding: 12px 12px;
    border-radius: 14px;
    font-size: 13px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    background: rgba(185, 28, 28, 0.06);
    color: #7f1d1d;
}

.message--success {
    border: 1px solid rgba(21, 128, 61, 0.22);
    background: rgba(21, 128, 61, 0.06);
    color: #14532d;
}

.validation {
    color: var(--danger);
    font-size: 12px;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 22px 20px 20px 20px;
        border-radius: 20px;
    }
}
