@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --gold: #b38a45;
    --gold-dark: #8d682d;
    --ink: #20231f;
    --muted: #777b76;
    --border: #e9e4da;
    --cream: #fbf8f1;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 12% 15%, rgba(179, 138, 69, .12), transparent 35%),
        radial-gradient(ellipse at 88% 85%, rgba(179, 138, 69, .10), transparent 35%),
        linear-gradient(135deg, #f8f5ee, #fff 52%, #f6f0e4);
}

.auth-wrapper {
    min-height: 100vh;
    padding: 34px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 465px;
    padding: 42px 40px 32px;
    border: 1px solid rgba(179, 138, 69, .22);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 25px 75px rgba(45, 38, 25, .10);
}

.brand {
    display: block;
    margin-bottom: 30px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
}

.brand span {
    display: block;
    margin-top: 5px;
    color: var(--gold-dark);
    font-size: 10px;
    letter-spacing: 6px;
}

.icon-circle {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    border: 1px solid #e6d6b7;
    border-radius: 20px;
    background: var(--cream);
    font-size: 27px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold-dark);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.1px;
}

h1 {
    margin: 0 0 13px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    letter-spacing: -.6px;
}

.description {
    margin: 0 auto 27px;
    max-width: 340px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

label {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 51px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #fffefa;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(179, 138, 69, .12);
}

input::placeholder {
    color: #a2a29c;
}

button,
.primary-link {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #c4a05e, #96702f);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(150, 112, 47, .20);
    transition: transform .2s, box-shadow .2s;
}

button:hover,
.primary-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(150, 112, 47, .27);
}

button span,
.primary-link span {
    font-size: 18px;
}

.back-link {
    display: block;
    margin-top: 23px;
    color: #6e6049;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--gold-dark);
}

.notice {
    margin: 0 0 20px;
    padding: 14px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.notice.success {
    border: 1px solid #cce7d4;
    background: #f0faf3;
    color: #24663a;
}

.notice.error {
    border: 1px solid #f1d0ce;
    background: #fff5f4;
    color: #963c36;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 27px;
    padding-top: 19px;
    border-top: 1px solid #f0ece4;
    color: #7b7c72;
    font-size: 11px;
    text-align: center;
}

.security-note span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8f4e9;
    color: #28713b;
    font-size: 11px;
    font-weight: 700;
}

footer {
    margin-top: 22px;
    color: #858174;
    text-align: center;
    font-size: 11px;
    letter-spacing: .3px;
}

@media (max-width: 520px) {
    .auth-wrapper {
        padding: 20px 13px;
    }

    .auth-card {
        padding: 32px 22px 25px;
        border-radius: 19px;
    }

    .brand {
        margin-bottom: 25px;
    }
}