/* ============================================
   LMA Custom Login v3 – login.css
   ============================================ */

/* ── Hide ALL default WooCommerce login/register/lost-password output ── */
.woocommerce-account .u-columns.col2-set,
.woocommerce-account .col2-set,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account .woocommerce-ResetPassword,
.woocommerce-account form.lost_reset_password,
.woocommerce-account h2.woocommerce-myaccount-page-title,
.woocommerce-account .lost_password {
    display: none !important;
}

/* ── Center wrapper ── */
.woocommerce-account .woocommerce {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 40px 16px !important;
    background: transparent !important;
}

/* ── Outer wrapper ── */
.lma-login-wrap {
    width: 100%;
    max-width: 460px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Card ── */
.lma-card {
    background: #111318;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    animation: lma-fade-up 0.35s ease both;
}

/* ── Logo ── */
.lma-logo {
    display: block;
    max-height: 48px;
    max-width: 160px;
    margin: 0 auto 20px;
    object-fit: contain;
}

/* ── Heading ── */
.lma-heading {
    color: #f1f5f9 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.5px;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
}

.lma-subheading {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px !important;
    line-height: 1.5;
}

/* ── Google Button ── */
.lma-google-btn-wrap {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.lma-google-btn-wrap > div,
#lma-google-btn {
    width: 100% !important;
}

/* Force Google's iframe/button text to black */
#lma-google-btn iframe {
    color-scheme: light !important;
}

/* Force GSI button rendered text to be dark/black */
#lma-google-btn,
#lma-google-btn * {
    color: #1f1f1f !important;
}

.lma-google-btn-wrap [data-text],
.lma-google-btn-wrap .nsm7Bb-HzV7m-LgbsSe-BPrWId {
    color: #1f1f1f !important;
}

/* ── Divider ── */
.lma-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #475569;
    font-size: 13px;
}

.lma-divider::before,
.lma-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* ── Message Box ── */
.lma-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.lma-message.lma-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

.lma-message.lma-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* ── Form ── */
.lma-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Input fields ── */
.lma-field-group {
    position: relative;
}

.lma-field-group input[type="text"],
.lma-field-group input[type="email"],
.lma-field-group input[type="password"] {
    width: 100% !important;
    padding: 13px 16px !important;
    background: #1a1f2e !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    box-shadow: none !important;
}

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

.lma-field-group input::placeholder {
    color: #475569 !important;
}

/* ── Password toggle ── */
.lma-password-group input {
    padding-right: 48px !important;
}

.lma-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.lma-toggle-pw:hover { color: #94a3b8; }

/* ── Field hint ── */
.lma-field-hint {
    color: #475569;
    font-size: 12px;
    margin: -4px 0 0 !important;
    line-height: 1.4;
}

/* ── Form footer (remember + lost pw) ── */
.lma-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.lma-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.lma-remember input[type="checkbox"] {
    display: none !important;
}

.lma-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    background: #1a1f2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.lma-remember input:checked + .lma-checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.lma-remember input:checked + .lma-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
    display: block;
}

.lma-lost-pw {
    color: #64748b !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.lma-lost-pw:hover { color: #94a3b8 !important; }

/* ── Primary Button ── */
.lma-btn-primary {
    width: 100%;
    padding: 13px 20px;
    background: #2563eb;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    text-shadow: none;
    letter-spacing: 0;
}

.lma-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
    transform: translateY(-1px);
    color: #fff !important;
}

.lma-btn-primary:active:not(:disabled) { transform: translateY(0); }
.lma-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Spinner ── */
.lma-spinner { animation: lma-spin 0.7s linear infinite; }
@keyframes lma-spin { to { transform: rotate(360deg); } }

/* ── Card footer ── */
.lma-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lma-signup-link {
    color: #3b82f6 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.lma-signup-link:hover { color: #60a5fa !important; text-decoration: underline; }

.lma-footer-sep { color: rgba(255,255,255,0.15); }

.lma-lost-pw-footer {
    color: #64748b !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.lma-lost-pw-footer:hover { color: #94a3b8 !important; }

.lma-back-link {
    color: #64748b !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lma-back-link:hover { color: #94a3b8 !important; }

/* ── Entrance animation ── */
@keyframes lma-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .lma-card { padding: 28px 20px 24px; border-radius: 12px; }
    .lma-heading { font-size: 26px !important; }
}
