/* 認証画面の情報密度を揃え、入力と主要導線を短時間で判別できるようにする。 */
:root {
    --auth-bg-start: #f3f7ff;
    --auth-bg-end: #eefaf7;
    --auth-card-border: #d4e3ff;
    --auth-text-main: #163860;
    --auth-text-sub: #56708f;
    --auth-accent: #0d6efd;
    --auth-shadow: 0 18px 40px rgba(22, 56, 96, 0.12);
}

.auth-layout {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 32px;
}

.auth-card {
    width: min(560px, 100%);
    background: linear-gradient(150deg, var(--auth-bg-start) 0%, var(--auth-bg-end) 100%);
    border: 1px solid var(--auth-card-border);
    border-radius: 18px;
    box-shadow: var(--auth-shadow);
    padding: 26px 24px;
}

.auth-title {
    color: var(--auth-text-main);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--auth-text-sub);
    margin-bottom: 18px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.92rem;
    color: #274a74;
    font-weight: 600;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    border: 1px solid #b6caea;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
    outline: none;
}

.auth-form input[type="checkbox"] {
    width: auto;
}

.auth-help {
    margin: 0;
    font-size: 0.86rem;
    color: #4f6783;
}

.auth-error-list {
    margin: 0;
    padding-left: 18px;
    color: #b3261e;
    font-size: 0.86rem;
}

.auth-button {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: #5b7596;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #c8d9f2;
}

.auth-google-button {
    width: 100%;
    border-width: 2px;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.auth-switch {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #476182;
}

.auth-switch a {
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-provider-name {
    color: #0b59cf;
}

@media (max-width: 576px) {
    .auth-layout {
        min-height: auto;
        padding: 8px 0 24px;
    }

    .auth-card {
        border-radius: 14px;
        padding: 18px 16px;
    }
}
