/* =========================================================
 * ログイン画面
 * ========================================================= */
.auth-body {
    margin: 0;
}

.auth-wrap {
    min-height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card-wrap {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-brand-logo {
    width: auto;
    height: 34px;
}

.auth-brand-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: .06em;
    text-align: center;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px 32px 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.auth-field.password {
    margin-bottom: 26px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    height: 40px;
}

.auth-pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    padding: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.auth-pwd-toggle:hover {
    color: var(--color-text-muted);
}

.auth-pwd-icon {
    display: block;
}

.auth-pwd-icon[hidden] {
    display: none;
}

.auth-error-banner {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #c53030;
    line-height: 1.55;
    font-weight: 500;
}

.auth-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #c53030;
}

.auth-input.is-error {
    border-color: #e84747;
}

.btn-block {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 14.5px;
    letter-spacing: .05em;
}

@media (max-width: 480px) {
    .auth-wrap {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 24px 20px 28px;
    }
}
