/* ==========================================================================
   MYMALLBEAUTY - AUTH PAGES STYLES
   Login, Register, Password Reset
   Clean white/teal aesthetic adapted from Skyfall
   ========================================================================== */

/* Wrapper */
.mmb-auth-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

/* Container */
.mmb-auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
}

/* Card */
.mmb-auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Form View Transitions ─────────────────────── */
.mmb-auth-card .form-view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mmb-auth-card .form-view.active {
    display: block;
    opacity: 1;
    animation: mmbAuthFadeIn 0.4s ease forwards;
}

@keyframes mmbAuthFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Input Groups ──────────────────────────────── */
.mmb-auth-input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.mmb-auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mmb-auth-input {
    width: 100%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    font-size: 0.9375rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mmb-auth-input:focus {
    outline: none;
    border-color: #23bac5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 186, 197, 0.12);
}

.mmb-auth-input::placeholder {
    color: #9ca3af;
}

/* Autofill override */
.mmb-auth-input:-webkit-autofill,
.mmb-auth-input:-webkit-autofill:hover,
.mmb-auth-input:-webkit-autofill:focus,
.mmb-auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    caret-color: #1f2937 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.mmb-auth-input:focus:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    border-color: #23bac5 !important;
}

/* ── Buttons ───────────────────────────────────── */
.mmb-auth-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #23bac5;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #23bac5;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.mmb-auth-btn:hover {
    background: #1da3ad;
    border-color: #1da3ad;
    box-shadow: 0 4px 12px rgba(35, 186, 197, 0.3);
}

.mmb-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secondary link style */
.mmb-auth-link {
    color: #6b7280;
    font-size: 0.8125rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mmb-auth-link:hover {
    color: #23bac5;
}

button.mmb-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Checkbox ──────────────────────────────────── */
input[type="checkbox"].mmb-auth-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

input[type="checkbox"].mmb-auth-checkbox:checked {
    background: #23bac5;
    border-color: #23bac5;
}

input[type="checkbox"].mmb-auth-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"].mmb-auth-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 186, 197, 0.15);
}

/* ── Error / Success Messages ──────────────────── */
.mmb-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.mmb-auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* ── Password Strength Indicator ───────────────── */
.mmb-password-strength {
    height: 4px;
    background: #e5e7eb;
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.mmb-password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mmb-password-strength-bar.weak { width: 33%; background: #ef4444; }
.mmb-password-strength-bar.medium { width: 66%; background: #eab308; }
.mmb-password-strength-bar.strong { width: 100%; background: #22c55e; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 480px) {
    .mmb-auth-wrapper {
        padding: 2rem 1rem;
    }

    .mmb-auth-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
}
