/**
 * My247Coach — Auth Pages Styles (Login, Forgot Password, Reset Password)
 *
 * Mobile-first, accessible, iOS-friendly (16px font-size prevents auto-zoom).
 * Consistent with existing plugin color palette.
 *
 * @since 6.8.0
 */

/* ===== Auth Page Container ===== */

.my247coach-auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding: 40px 16px;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
}

/* ===== Auth Card ===== */

.my247coach-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .my247coach-auth-card {
        padding: 32px 20px;
    }
}

/* ===== Logo ===== */

.my247coach-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.my247coach-auth-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: -0.5px;
}

/* ===== Title & Subtitle ===== */

.my247coach-auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-align: center;
}

.my247coach-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.5;
}

/* ===== Messages (Error / Success) ===== */

.my247coach-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.my247coach-auth-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.my247coach-auth-message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ===== Form ===== */

.my247coach-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== Field ===== */

.my247coach-auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.my247coach-auth-field input[type="email"],
.my247coach-auth-field input[type="password"],
.my247coach-auth-field input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px; /* 16px prevents iOS auto-zoom */
    line-height: 1.5;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.my247coach-auth-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.my247coach-auth-field input::placeholder {
    color: #94a3b8;
}

/* ===== Password Wrap (with toggle) ===== */

.my247coach-auth-password-wrap {
    position: relative;
}

.my247coach-auth-password-wrap input {
    padding-right: 48px;
}

.my247coach-auth-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.2s;
}

.my247coach-auth-toggle-pw:hover {
    color: #64748b;
}

/* ===== Checkbox ===== */

.my247coach-auth-checkbox {
    display: flex;
    align-items: center;
}

.my247coach-auth-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.my247coach-auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* ===== Submit Button ===== */

.my247coach-auth-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.my247coach-auth-btn:hover {
    background: #2563eb;
}

.my247coach-auth-btn:active {
    background: #1d4ed8;
}

.my247coach-auth-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== Links ===== */

.my247coach-auth-links {
    text-align: center;
    margin-top: 16px;
}

.my247coach-auth-links a {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
}

.my247coach-auth-links a:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* ===== Password Strength Meter ===== */

.my247coach-auth-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.my247coach-auth-strength-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.my247coach-auth-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.my247coach-auth-strength-fill[data-strength="weak"] {
    width: 33%;
    background-color: #ef4444;
}

.my247coach-auth-strength-fill[data-strength="medium"] {
    width: 66%;
    background-color: #f59e0b;
}

.my247coach-auth-strength-fill[data-strength="strong"] {
    width: 100%;
    background-color: #10b981;
}

.my247coach-auth-strength-label {
    font-size: 12px;
    color: #64748b;
    min-width: 50px;
}

/* ===== Password Match Error ===== */

.my247coach-auth-match-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
}

/* ===== Language Switch ===== */

.my247coach-auth-lang-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.my247coach-auth-lang-switch strong {
    color: #3b82f6;
    font-weight: 600;
}

.my247coach-auth-lang-link {
    color: #64748b;
    text-decoration: none;
    padding: 4px 2px;
}

.my247coach-auth-lang-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.my247coach-auth-lang-sep {
    color: #cbd5e1;
    margin: 0 4px;
}
