@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Manrope:wght@400;500;700&display=swap');

:root {
    --bg1: #0f2333;
    --bg2: #1e4661;
    --pulse1: #f7b168;
    --pulse2: #49b7b4;
    --panel: #fefdf7;
    --text: #142b3a;
    --muted: #526673;
    --line: #cbdae4;
    --accent1: #ef7442;
    --accent2: #f3a04d;
    --ok-bg: #e8f8ef;
    --ok-border: #95d6ad;
    --ok-text: #1e6a3b;
    --err-bg: #fff0ec;
    --err-border: #efab95;
    --err-text: #8a2e16;
    --info-bg: #ecf4fd;
    --info-border: #bed8ee;
    --info-text: #224862;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 84% 16%, rgba(247, 177, 104, 0.35), transparent 34%),
        radial-gradient(circle at 14% 86%, rgba(73, 183, 180, 0.34), transparent 32%),
        linear-gradient(155deg, var(--bg1), var(--bg2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.auth-shell {
    width: min(520px, 100%);
    background: linear-gradient(165deg, rgba(254, 253, 247, 0.98), rgba(244, 249, 252, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;
    box-shadow: 0 28px 68px rgba(8, 19, 34, 0.34);
    padding: 24px;
    animation: riseIn 0.65s ease-out both;
}

.brand-hero {
    position: relative;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(20, 43, 58, 0.08);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 251, 0.9));
    overflow: hidden;
}

.brand-hero::before {
    content: "";
    position: absolute;
    inset: -36% 56% auto auto;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(243, 160, 77, 0.24), transparent 70%);
    pointer-events: none;
}

.brand-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -42% -20%;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(73, 183, 180, 0.2), transparent 72%);
    pointer-events: none;
}

.brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 360px);
    margin: 0 auto;
    height: auto;
    border-radius: 14px;
    filter: drop-shadow(0 10px 20px rgba(17, 38, 56, 0.16));
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #285066;
    background: linear-gradient(90deg, rgba(73, 183, 180, 0.2), rgba(243, 160, 77, 0.24));
    margin-bottom: 8px;
}

h1 {
    margin: 0 0 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.7rem, 5vw, 2.35rem);
    line-height: 1.1;
    color: #173042;
}

.intro {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.message {
    border-radius: 12px;
    border: 1px solid;
    padding: 10px 12px;
    margin: 0 0 14px;
}

.message.success {
    background: var(--ok-bg);
    border-color: var(--ok-border);
    color: var(--ok-text);
}

.message.error {
    background: var(--err-bg);
    border-color: var(--err-border);
    color: var(--err-text);
}

.message.info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
}

.form-group {
    margin-bottom: 13px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #1f3848;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus {
    outline: none;
    border-color: #2fa7ad;
    box-shadow: 0 0 0 3px rgba(47, 167, 173, 0.16);
}

button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 12px 22px rgba(239, 116, 66, 0.3);
    transition: transform .16s ease, box-shadow .16s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 25px rgba(239, 116, 66, 0.38);
}

.login-link {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
}

.login-link a {
    color: #244f67;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(36, 79, 103, 0.24);
    padding-bottom: 1px;
}

.login-link a:hover {
    border-bottom-color: rgba(36, 79, 103, 0.75);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 18px;
    }

    .brand-hero {
        padding: 10px;
    }

    .brand-logo {
        width: min(100%, 300px);
    }
}
