/**
 * ByteChips Login & Registration Styles
 * - WordPress標準フォームのカスタマイズ
 * - セキュリティ重視のUI
 */

.bytechips-login,
.bytechips-register,
.bytechips-profile {
    max-width: 480px;
    margin: 48px auto;
    padding: 32px;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

.bytechips-login h2,
.bytechips-register h2,
.bytechips-profile h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
    color: #f1f5f9;
}

.bytechips-login h3,
.bytechips-register h3,
.bytechips-profile h3 {
    margin: 32px 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
}

/* Message Boxes */
.bytechips-login__message,
.bytechips-register__message,
.bytechips-profile__message {
    padding: 16px;
    margin: 0 0 24px;
    border-radius: 8px;
    font-size: 14px;
}

.bytechips-login__message.is-success,
.bytechips-register__message.is-success,
.bytechips-profile__message.is-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.bytechips-login__message.is-error,
.bytechips-register__message.is-error,
.bytechips-profile__message.is-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.bytechips-login__message p,
.bytechips-register__message p,
.bytechips-profile__message p {
    margin: 0;
}

.bytechips-login__menu {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.bytechips-login__menu a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.bytechips-login__menu a:hover,
.bytechips-login__menu a:focus {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.15);
    outline: none;
}

.bytechips-login__menu a.is-active {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.35);
}

.bytechips-register__intro li {
    font-size: 14px;
}

/* Forms */
.bytechips-login__form,
.bytechips-register__form,
.bytechips-profile-form {
    margin: 0;
}

.bytechips-login__form label,
.bytechips-register__form label,
.bytechips-profile-form label {
    display: block;
    margin: 0 0 8px;
    font-weight: 500;
    color: #cbd5e1;
}

.bytechips-login__form .required,
.bytechips-register__form .required,
.bytechips-profile-form .required {
    color: #ef4444;
}

.bytechips-login__form input[type="text"],
.bytechips-login__form input[type="email"],
.bytechips-login__form input[type="password"],
.bytechips-register__form input[type="text"],
.bytechips-register__form input[type="email"],
.bytechips-register__form input[type="password"],
.bytechips-profile-form input[type="text"],
.bytechips-profile-form input[type="email"],
.bytechips-profile-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.bytechips-login__form input[type="text"]:focus,
.bytechips-login__form input[type="email"]:focus,
.bytechips-login__form input[type="password"]:focus,
.bytechips-register__form input[type="text"]:focus,
.bytechips-register__form input[type="email"]:focus,
.bytechips-register__form input[type="password"]:focus,
.bytechips-profile-form input[type="text"]:focus,
.bytechips-profile-form input[type="email"]:focus,
.bytechips-profile-form input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.bytechips-login__form input[type="text"]:disabled,
.bytechips-login__form input[type="email"]:disabled,
.bytechips-login__form input[type="password"]:disabled,
.bytechips-register__form input[type="text"]:disabled,
.bytechips-register__form input[type="email"]:disabled,
.bytechips-register__form input[type="password"]:disabled,
.bytechips-profile-form input[type="text"]:disabled,
.bytechips-profile-form input[type="email"]:disabled,
.bytechips-profile-form input[type="password"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bytechips-login__form small,
.bytechips-register__form small,
.bytechips-profile-form small {
    display: block;
    margin: -12px 0 8px;
    font-size: 12px;
    color: #94a3b8;
}

.bytechips-login__cta {
    margin-top: 20px;
    text-align: center;
}

.bytechips-login__register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 999px;
}

.bytechips-login__register-button:hover,
.bytechips-login__register-button:focus {
    text-decoration: none;
}

/* WordPress Login Form Override */
#bytechips-login-form {
    margin: 0;
}

#bytechips-login-form label {
    display: block;
    margin: 0 0 8px;
    font-weight: 500;
    color: #cbd5e1;
}

#bytechips-login-form #user_login,
#bytechips-login-form #user_pass {
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
}

#bytechips-login-form #rememberme {
    margin: 0 8px 0 0;
}

#bytechips-login-form .forgetmenot {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
}

#bytechips-login-form .forgetmenot label {
    margin: 0;
    font-weight: normal;
}

/* Buttons */
.bytechips-login__form .button,
.bytechips-register__form .button,
.bytechips-profile-form .button,
#bytechips-login-form .button {
    padding: 12px 24px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bytechips-login__form .button:hover,
.bytechips-register__form .button:hover,
.bytechips-profile-form .button:hover,
#bytechips-login-form .button:hover {
    background: #2563eb;
}

.bytechips-login__form .button-primary,
.bytechips-register__form .button-primary,
.bytechips-profile-form .button-primary {
    background: #3b82f6;
}

.bytechips-login__form .button-primary:hover,
.bytechips-register__form .button-primary:hover,
.bytechips-profile-form .button-primary:hover {
    background: #2563eb;
}

/* Links */
.bytechips-login__links,
.bytechips-register__links {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
}

.bytechips-login__links a,
.bytechips-register__links a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bytechips-login__links a:hover,
.bytechips-register__links a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.bytechips-login__links a:visited,
.bytechips-register__links a:visited {
    color: #60a5fa;
}

.bytechips-register__terms {
    font-size: 12px;
    color: #94a3b8;
    margin: -8px 0 12px;
    line-height: 1.6;
}

.bytechips-register__terms a {
    color: #93c5fd;
    text-decoration: underline;
}

.bytechips-register__terms a:hover,
.bytechips-register__terms a:focus {
    color: #bfdbfe;
}

/* Profile Fields */
.bytechips-profile__field {
    margin: 0 0 24px;
}

.bytechips-profile__field label {
    display: block;
    margin: 0 0 8px;
    font-weight: 500;
    color: #cbd5e1;
}

.bytechips-profile__field input {
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
}

.bytechips-profile__field small {
    display: block;
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.bytechips-profile__logout {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    display: flex;
    justify-content: center;
}

.bytechips-profile__logout .button {
    min-width: 140px;
}

/* Responsive */
@media (max-width: 640px) {
    .bytechips-login,
    .bytechips-register,
    .bytechips-profile {
        margin: 24px 16px;
        padding: 24px;
    }

    .bytechips-login h2,
    .bytechips-register h2,
    .bytechips-profile h2 {
        font-size: 24px;
    }
}

