* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Hiragino Kaku Gothic ProN', sans-serif;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ 認証ページ ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f7ff 0%, #d7ecff 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(147, 112, 219, 0.2);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(90, 163, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(135, 206, 250, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.auth-header {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.5em;
    color: #4a90e2;
    margin-bottom: 6px;
}

.auth-header p {
    color: #5b7996;
    font-size: 0.95em;
}

.auth-error {
    margin: 0 0 12px;
    color: #d32f2f;
    font-size: 0.95em;
    text-align: center;
    display: none;
}

.auth-success {
    margin: 0 0 12px;
    color: #1b5e20;
    font-size: 0.95em;
    text-align: center;
    display: none;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 6px;
}

.required-label {
    color: #d32f2f;
    font-size: 0.85em;
    font-weight: normal;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0 14px;
    height: 52px;
    line-height: 52px;
    border: 2px solid #e8d5f0;
    border-radius: 12px;
    background: #fff;
    font-size: 17px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.helper-text {
    color: #555;
    font-size: 0.9em;
    margin: 6px 0 12px;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4a90e2;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4aa3ff 0%, #5dade2 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(186, 85, 211, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(90, 163, 255, 0.35);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 1em;
    color: #4a90e2;
}

.auth-links a {
    color: #4a90e2;
    text-decoration: none;
}

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

.policy-links {
    margin-top: 12px;
    font-size: 0.85em;
    color: #777;
    text-align: center;
}

.policy-links a {
    color: #4a90e2;
    text-decoration: none;
}

.policy-links a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 26px 22px;
    }

    .auth-header h1 {
        font-size: 1.3em;
    }
}
