/* Nook — auth pages */

.auth-container {
    max-width: 44.8rem;
}

body.page--login,
body.page--setup {
    --login-background-image: url('/login-background');
    min-height: 100vh;
    background:
        linear-gradient(rgba(15, 15, 20, 0.45), rgba(15, 15, 20, 0.45)),
        var(--login-background-image) center / cover no-repeat fixed;
}

body.page--login .auth-container,
body.page--setup .auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    max-width: 400px;
    padding: 2.4rem 1.6rem;
}

body.page--login .auth-container .error,
body.page--setup .auth-container .error {
    width: 100%;
}

body.page--login .auth-container .card,
body.page--setup .auth-container .card {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
}

.login-intro {
    margin: 0 0 2rem;
    color: #52525b;
    font-size: 1.52rem;
    line-height: 1.45;
}

.login-greetings-field {
    margin-bottom: 1.2rem;
}

.login-greetings-label {
    display: block;
    margin-bottom: 0.4rem;
}

.login-greetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.login-greeting-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.login-greeting-row input[type="text"] {
    flex: 1;
    margin-top: 0;
}

.login-greeting-remove {
    flex-shrink: 0;
    min-width: 3.6rem;
    padding: 0.56rem 0.8rem;
    line-height: 1;
}

.login-background-preview-img {
    display: block;
    width: 100%;
    max-width: 32rem;
    max-height: 12.8rem;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e4e4e7;
}

body.page--404 {
    --login-background-image: url('/login-background');
}

body.page--404 .app-main {
    background:
        linear-gradient(rgba(15, 15, 20, 0.45), rgba(15, 15, 20, 0.45)),
        var(--login-background-image) center / cover no-repeat;
}

body.page--404 .app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.4rem;
}

/* Logged-out 404 uses the auth shell (no app-main). */
body.page--404:not(:has(.app-shell)) {
    min-height: 100vh;
    background:
        linear-gradient(rgba(15, 15, 20, 0.45), rgba(15, 15, 20, 0.45)),
        var(--login-background-image) center / cover no-repeat fixed;
}

body.page--404 .auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    max-width: 400px;
    padding: 2.4rem 1.6rem;
}

body.page--404 .not-found-card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    text-align: center;
}

.not-found-heading {
    margin: 0 0 1.2rem;
    font-size: 1.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.not-found-message {
    margin: 0;
    color: #52525b;
    font-size: 1.52rem;
    line-height: 1.45;
}
