/* The account pages (sign in, register, password, manage) in the design's look: the dotted
   cream page, a yellow title panel and an outlined white card. Linked after each page's own
   styles, so these win. Tokens as in blazor-global-styles.css. */
body {
    background: radial-gradient(#f2d3b8 1.4px, transparent 1.5px) 0 0 / 26px 26px, #fff8ed !important;
    color: #2e1f2b;
    font-family: "Nunito", system-ui, sans-serif;
}

.login-page,
.register-page,
.forgotpassword-page,
.manage-page,
.passwordresetlinksent-page,
.registerconfirmation-page {
    left: auto !important;
    right: auto !important;
    width: auto !important;
    background: none !important;
    margin: 0 !important;
    padding: 24px 12px 40px !important;
    min-height: 100vh;
}

.login-hero,
.register-hero,
.forgotpassword-hero,
.manage-hero,
.passwordresetlinksent-hero,
.registerconfirmation-hero {
    max-width: 560px;
    min-height: 0 !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    clip-path: none !important;
    background: #ffd166 !important;
    border: 3px solid #2e1f2b;
    border-radius: 26px;
    box-shadow: 6px 6px 0 #2e1f2b;
}

.login-hero::before,
.register-hero::before,
.forgotpassword-hero::before,
.manage-hero::before,
.passwordresetlinksent-hero::before,
.registerconfirmation-hero::before,
.login-hero::after,
.register-hero::after,
.forgotpassword-hero::after,
.manage-hero::after,
.passwordresetlinksent-hero::after,
.registerconfirmation-hero::after {
    display: none !important;
}

.login-hero-inner,
.register-hero-inner,
.forgotpassword-hero-inner,
.manage-hero-inner,
.passwordresetlinksent-hero-inner,
.registerconfirmation-hero-inner {
    padding: 18px 22px !important;
}

.login-hero-title,
.register-hero-title,
.forgotpassword-hero-title,
.manage-hero-title,
.passwordresetlinksent-hero-title,
.registerconfirmation-hero-title {
    margin: 4px 0 0 !important;
    font: 800 clamp(1.7rem, 4vw, 2.3rem)/1.1 "Baloo 2", system-ui, sans-serif !important;
    color: #311d25 !important;
    text-shadow: none !important;
}

.login-body,
.register-body,
.forgotpassword-body,
.manage-body,
.passwordresetlinksent-body,
.registerconfirmation-body {
    max-width: 560px;
    background: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.parchment-corner {
    display: none !important;
}

.parchment-card {
    max-width: 560px;
    margin: 0 auto !important;
    padding: 24px !important;
    background: #fff !important;
    border: 3px solid #2e1f2b !important;
    border-radius: 26px !important;
    box-shadow: 6px 6px 0 #2e1f2b !important;
    color: #2e1f2b !important;
}

.parchment-card h1, .parchment-card h2, .parchment-card h3, .parchment-card h4, .parchment-card h5 {
    font-family: "Baloo 2", system-ui, sans-serif;
    font-weight: 800;
    color: #311d25;
}

.parchment-card .form-label {
    color: #2e1f2b !important;
    font-weight: 800 !important;
}

.parchment-card .form-control,
.parchment-card .form-select {
    min-height: 50px;
    border: 3px solid #2e1f2b !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #2e1f2b !important;
    font: 600 16px "Nunito", system-ui, sans-serif !important;
    box-shadow: none !important;
}

.parchment-card .form-control:focus,
.parchment-card .form-select:focus {
    border-color: #c95578 !important;
    box-shadow: 0 0 0 3px #fbe7ee !important;
}

.parchment-card .input-group .form-control {
    border-right: 0 !important;
    border-radius: 14px 0 0 14px !important;
}

.parchment-card .input-group .btn {
    border: 3px solid #2e1f2b !important;
    border-radius: 0 14px 14px 0 !important;
    background: #fff1dc !important;
    color: #2e1f2b !important;
    box-shadow: none !important;
}

.parchment-card a {
    color: #a34663 !important;
    font-weight: 800;
}

.parchment-card .btn-primary,
.parchment-card .btn-secondary,
.parchment-card .btn:not(.social-login-btn):not(.input-group .btn) {
    min-height: 50px;
    border: 3px solid #2e1f2b !important;
    border-radius: 16px !important;
    box-shadow: 4px 4px 0 #2e1f2b !important;
    font: 800 1.1rem "Baloo 2", system-ui, sans-serif !important;
    text-shadow: none !important;
}

.parchment-card .btn-primary {
    background: #c95578 !important;
    color: #fff !important;
}

.parchment-card .btn-secondary {
    background: #fff !important;
    color: #2e1f2b !important;
}

.parchment-card .btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 #2e1f2b !important;
}

.social-login-btn {
    min-height: 50px;
    border: 3px solid #2e1f2b !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #2e1f2b !important;
    box-shadow: 3px 3px 0 #2e1f2b !important;
    font: 800 1.05rem "Baloo 2", system-ui, sans-serif !important;
}

.social-login-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7a6476 !important;
    font: 800 1rem "Nunito", system-ui, sans-serif !important;
}

.social-login-heading::before,
.social-login-heading::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #eadacb;
}

.parchment-card .alert {
    border: 3px solid #2e1f2b;
    border-radius: 16px;
    font-weight: 700;
}
