:root {
    --auth-coral: #ff4353;
    --auth-peach: #ffd294;
    --auth-ink: #321d20;
    --auth-paper: rgba(255, 250, 242, 0.94);
    --auth-line: rgba(72, 35, 36, 0.22);
}

html {
    min-height: 100%;
    background: var(--auth-coral);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--auth-ink);
    background: linear-gradient(45deg, #ff4353 0%, #ffd294 100%);
    font-family: Georgia, "Times New Roman", serif;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.brand-logo {
    position: absolute;
    top: 3vh;
    left: 0;
    width: min(63vw, 820px);
    max-height: 69vh;
    object-fit: contain;
    object-position: top left;
}

.auth-container {
    position: absolute;
    bottom: 5vh;
    left: 5vw;
    width: min(360px, calc(100vw - 48px));
    padding: 26px 28px 22px;
    background: var(--auth-paper);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(75, 29, 35, 0.18);
    text-align: center;
    box-sizing: border-box;
}

.auth-container h1 {
    margin: 0 0 20px;
    font-size: 32px;
}

.auth-container input {
    display: block;
    width: 100%;
    padding: 12px 13px;
    margin: 12px 0;
    border-radius: 5px;
    border: 1px solid var(--auth-line);
    background: #fffdf9;
    color: var(--auth-ink);
    font: 16px Arial, sans-serif;
    box-sizing: border-box;
}

.auth-container button,
.auth-notice button {
    width: 100%;
    padding: 12px;
    background: var(--auth-coral);
    color: #fffaf2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font: 700 15px Arial, sans-serif;
}

.auth-container button:hover,
.auth-notice button:hover {
    background: #e93449;
}

.auth-container p {
    margin: 18px 0 0;
    font: 15px Arial, sans-serif;
}

.auth-container a {
    color: #a6263a;
    font-weight: 700;
}

.auth-notice {
    position: absolute;
    right: 5vw;
    bottom: 5vh;
    width: min(300px, calc(100vw - 48px));
    padding: 18px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.88);
    box-shadow: 0 14px 36px rgba(75, 29, 35, 0.12);
    box-sizing: border-box;
    font: 14px/1.45 Arial, sans-serif;
}

.auth-notice h2 {
    margin: 0 0 8px;
    font: 700 18px Georgia, "Times New Roman", serif;
}

.auth-notice p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.auth-notice-editor {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.auth-notice-editor[hidden] {
    display: none;
}

.auth-notice-editor label {
    font-weight: 700;
}

.auth-notice-editor textarea {
    width: 100%;
    min-height: 76px;
    padding: 9px;
    border: 1px solid var(--auth-line);
    border-radius: 5px;
    background: #fffdf9;
    color: var(--auth-ink);
    font: 14px/1.4 Arial, sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

.auth-notice-editor #auth-notice-status {
    min-height: 1em;
    font-size: 12px;
}

@media (max-width: 720px) {
    .auth-page {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding: 20px 24px 26px;
        box-sizing: border-box;
        overflow: auto;
    }

    .brand-logo {
        position: static;
        width: min(calc(100% + 48px), 520px);
        max-height: 32vh;
        margin-left: -24px;
        margin-right: auto;
    }

    .auth-container,
    .auth-notice {
        position: static;
        width: min(100%, 420px);
        margin: 0;
    }

    .auth-notice {
        align-self: flex-end;
    }
}

@media (max-height: 620px) and (min-width: 721px) {
    .brand-logo {
        max-height: 54vh;
    }

    .auth-container,
    .auth-notice {
        bottom: 3vh;
    }
}
