* { box-sizing: border-box; }

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

body.kiroku-auth-body {
    margin: 0;
    background: #071329;
    color: #f9fafb;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.kiroku-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top left, #172a68 0%, #0d2047 52%, #071329 100%);
    position: relative;
    overflow: hidden;
}

.kiroku-auth-shell::before,
.kiroku-auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.kiroku-auth-shell::before {
    width: 540px;
    height: 540px;
    top: -250px;
    left: -180px;
    background: radial-gradient(circle, rgba(45, 91, 229, .22), transparent 68%);
}

.kiroku-auth-shell::after {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(43, 197, 180, .18), transparent 68%);
}

.kiroku-auth-card {
    width: min(100%, 460px);
    position: relative;
    z-index: 1;
    padding: 3rem 2.5rem;
    background: rgba(13, 32, 71, .94);
    border: 1px solid rgba(45, 91, 229, .34);
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 32px 80px rgba(0,0,0,.6), 0 0 42px rgba(45,91,229,.12);
    backdrop-filter: blur(20px);
}

.kiroku-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2d5be5, #2bc5b4, transparent);
}

.kiroku-auth-brand { margin-bottom: 2rem; text-align: center; }
.kiroku-auth-brand img { width: auto; height: 58px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.kiroku-auth-brand h1 { margin: 0 0 .4rem; color: #f9fafb; font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; }
.kiroku-auth-brand p { margin: 0; color: #93a4c3; font-size: .875rem; }

.kiroku-auth-label {
    display: block;
    margin-bottom: .5rem;
    color: #b5c4dc;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kiroku-auth-input {
    width: 100%;
    padding: .85rem 1rem;
    color: #f9fafb;
    background: rgba(31, 48, 80, .82);
    border: 1px solid rgba(126, 150, 190, .34);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.kiroku-auth-input::placeholder { color: #7183a4; }
.kiroku-auth-input:focus { border-color: #2d5be5; box-shadow: 0 0 0 3px rgba(45,91,229,.2); }

.kiroku-auth-check { color: #93a4c3; font-size: .84rem; }
.kiroku-auth-check input { accent-color: #2d5be5; }
.kiroku-auth-link { display: block; margin-top: .55rem; color: #7ea2ff; font-size: .8rem; text-align: right; text-decoration: none; }
.kiroku-auth-link:hover { color: #2bc5b4; text-decoration: underline; }
.kiroku-auth-copy { margin: 0 0 1.25rem; color: #93a4c3; font-size: .88rem; line-height: 1.5; }
.kiroku-auth-back { display: block; margin-top: 1rem; color: #93a4c3; font-size: .82rem; text-align: center; text-decoration: none; }
.kiroku-auth-back:hover { color: #2bc5b4; }
.kiroku-auth-status { margin-bottom: 1rem; padding: .75rem 1rem; color: #b8f3e8; background: rgba(43,197,180,.12); border: 1px solid rgba(43,197,180,.28); border-radius: 10px; font-size: .86rem; }

.kiroku-auth-button {
    width: 100%;
    padding: .9rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #2d5be5 0%, #2bc5b4 100%);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45,91,229,.35);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.kiroku-auth-button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 7px 28px rgba(45,91,229,.48); }

.kiroku-auth-errors {
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
    color: #fecaca;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(248,113,113,.28);
    border-radius: 10px;
    font-size: .86rem;
}

.kiroku-auth-footer { margin: 1.5rem 0 0; color: #7183a4; font-size: .78rem; text-align: center; }

@media (max-width: 576px) {
    .kiroku-auth-card { padding: 2rem 1.5rem; border-radius: 14px; }
}
