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

input::placeholder, textarea::placeholder { color: #bbb; }

body {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic Pro', 'BIZ UDPGothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FF8C42 0%, #E74C3C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header p {
    font-size: 1rem;
    color: #718096;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2d3748;
}

.form-group input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #FF8C42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.error-message {
    padding: 0.75rem 1rem;
    background: #fed7d7;
    color: #c53030;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.success-message {
    padding: 0.75rem 1rem;
    background: #c6f6d5;
    color: #2f855a;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-button {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #FF8C42 0%, #E74C3C 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: #FF8C42;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

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

/* ========================================
   Logo Icon
   ======================================== */
.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF8C42 0%, #E74C3C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-logo .material-symbols-outlined {
    font-size: 32px;
    color: #fff;
}

.auth-logo--success {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
}

.auth-logo--error {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

/* ========================================
   Required Mark
   ======================================== */
.required {
    color: #E74C3C;
    font-size: 0.75rem;
}

.optional {
    color: #777;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   Sent Message (確認メール送信後)
   ======================================== */
.sent-message {
    text-align: center;
    padding: 20px 0;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

.sent-message strong {
    color: #FF8C42;
    word-break: break-all;
}

.sent-notes {
    background: #F8F5F1;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sent-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.sent-note .material-symbols-outlined {
    font-size: 18px;
    color: #FF8C42;
    flex-shrink: 0;
}

.sent-note strong {
    color: #333;
}

/* ========================================
   Outline Button
   ======================================== */
.auth-button--outline {
    background: #fff;
    color: #FF8C42;
    border: 2px solid #FF8C42;
}

.auth-button--outline:hover:not(:disabled) {
    background: #FFF8F2;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.15);
}

/* ========================================
   Password Toggle
   ======================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #777;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #666;
}

.password-toggle .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================
   Password Strength
   ======================================== */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-height: 16px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.strength-label {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}
