﻿:root {
    --bg1: #0b1220;
    --bg2: #0f1b33;
    --card: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.10);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --danger-bg: rgba(255,0,0,.08);
    --danger-border: rgba(255,0,0,.18);
    --focus: rgba(255,255,255,.18);
    --shadow: 0 20px 60px rgba(0,0,0,.45);
    --r: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% 10%, rgba(70,120,255,.18), transparent 60%), radial-gradient(900px 500px at 80% 20%, rgba(0,220,200,.12), transparent 55%), linear-gradient(180deg, var(--bg1), var(--bg2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wrap {
    width: 100%;
    max-width: 420px;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo-img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(10px);
}

.title {
    font-size: 22px;
    margin: 0 0 6px 0;
}

.subtitle {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.row {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px 0;
    user-select: none;
}

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.18);
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    user-select: none;
}

    .check input {
        width: 16px;
        height: 16px;
    }

button {
    width: 100%;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.10);
    color: var(--text);
    cursor: pointer;
    font-weight: 650;
}

    button:hover {
        background: rgba(255,255,255,.14);
    }

    button:active {
        transform: translateY(1px);
    }

.linkrow {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

    .linkrow a {
        color: rgba(255,255,255,.85);
        text-decoration: none;
    }

        .linkrow a:hover {
            text-decoration: underline;
        }

.error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.success {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,255,140,.10);
    border: 1px solid rgba(0,255,140,.18);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.field-error {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,180,180,.95);
}

.foot {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
