@import url("sprite-icons.css");

:root {
    --night: #0c0b09;
    --panel: rgba(20, 17, 13, .94);
    --gold: #c99b4a;
    --gold-light: #efd184;
    --parchment: #e5d6b6;
    --muted: #a79c86;
    --blood: #7c251f;
    --error: #d17b6f;
    --success: #b8c98c;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--parchment);
    background:
        linear-gradient(rgba(8, 7, 6, .72), rgba(8, 7, 6, .88)),
        var(--night) url('../images/fiefbound-hero.png') center / cover fixed no-repeat;
    font-family: Georgia, "Times New Roman", serif;
}

a { color: var(--gold-light); }

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, calc(100% - 36px));
    margin: auto;
    padding: 24px 0;
}

.brand {
    color: #f3e8d0;
    font-weight: 700;
    letter-spacing: .18em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-bar nav { display: flex; gap: 20px; }

.site-bar nav a {
    color: #cfc0a2;
    font: 700 .7rem/1 Arial, sans-serif;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-bar nav a.back-link {
    padding: 9px 13px;
    border: 1px solid rgba(201,155,74,.42);
    color: var(--gold-light, #efd184);
    background: rgba(20,16,12,.85);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    padding: 30px 18px 70px;
}

.auth-card {
    width: min(510px, 100%);
    padding: clamp(30px, 7vw, 58px);
    border: 1px solid rgba(201, 155, 74, .42);
    background: var(--panel);
    box-shadow: 0 30px 85px rgba(0, 0, 0, .75), inset 0 0 60px rgba(201, 155, 74, .035);
    backdrop-filter: blur(5px);
}

.kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font: 800 .68rem/1.2 Arial, sans-serif;
    letter-spacing: .3em;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    color: #f5ead2;
    font-size: clamp(2.35rem, 8vw, 4rem);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-shadow: 0 3px 0 #4a2e19;
    text-transform: uppercase;
}

.intro {
    margin: 0 auto 30px;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
}

.field { margin-bottom: 19px; }

label {
    display: block;
    margin-bottom: 8px;
    color: #d7c6a4;
    font: 800 .7rem/1 Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #5c4d35;
    border-radius: 0;
    color: #f2e7d0;
    background: rgba(5, 5, 4, .76);
    font: 1rem/1.3 Georgia, serif;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 155, 74, .14);
    outline: none;
}

.hint {
    display: block;
    margin-top: 6px;
    color: #756e61;
    font: .72rem/1.4 Arial, sans-serif;
}

.button {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: 1px solid #a77e38;
    color: #171108;
    background: linear-gradient(#efd58e, #b98b3e);
    cursor: pointer;
    font: 800 .78rem/1 Arial, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
    filter: brightness(1.1);
    outline: none;
}

.switch {
    margin: 24px 0 0;
    color: #8f8675;
    font-size: .88rem;
    text-align: center;
}

.message {
    margin: 0 0 22px;
    padding: 13px 15px;
    border-left: 3px solid;
    background: rgba(0, 0, 0, .32);
    font-size: .9rem;
    line-height: 1.5;
}

.message.error {
    border-color: var(--blood);
    color: var(--error);
}

.message.success {
    border-color: #71884b;
    color: var(--success);
}

.message ul {
    margin: 0;
    padding-left: 18px;
}

.dev-link {
    overflow-wrap: anywhere;
    font-family: Arial, sans-serif;
    font-size: .77rem;
}

.profile-card { text-align: center; }

.identity {
    margin: 25px 0 12px;
    color: #f1e5cd;
    font-size: clamp(1.55rem, 5vw, 2.35rem);
}

.seal {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    margin-left: 7px;
    border: 2px double #e4b35c;
    border-radius: 50%;
    color: #f1ce82;
    background: #7d211b;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .55);
    cursor: help;
    font: 700 .7rem/1 Georgia, serif;
    vertical-align: middle;
}

.seal.unwitnessed {
    border-color: #736e64;
    color: #aaa59a;
    background: #3e3b37;
    filter: grayscale(.7);
}

.seal.unwitnessed::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 35px;
    background: #161513;
    transform: rotate(32deg);
}

.status-copy {
    max-width: 350px;
    margin: 0 auto 30px;
    color: var(--muted);
    line-height: 1.65;
}

.secondary-link {
    display: inline-block;
    margin-top: 18px;
    color: #9f9583;
    font: 700 .7rem/1 Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (max-width: 560px) {
    body { background-attachment: scroll; }
    .site-bar nav { gap: 11px; }
    .site-bar nav a { font-size: .62rem; }
    .auth-card { padding: 36px 23px; }
}
