/**
 * Mr. Ted Shop — Auth (Login / Registro) CSS
 * Diseño: Vibe Vault — navy/purple/mint
 */

/* ── Wrap ── */
.mt-auth-wrap {
    min-height: calc(100vh - var(--mt-header-h, 80px));
    background: var(--mt-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ── Fondo decorativo ── */
.mt-auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mt-auth-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
}

.mt-auth-bg__blob--1 {
    width: 500px;
    height: 500px;
    background: var(--mt-violet);
    top: -10%;
    left: -10%;
}

.mt-auth-bg__blob--2 {
    width: 400px;
    height: 400px;
    background: var(--mt-mint);
    bottom: -10%;
    right: -5%;
    opacity: 0.08;
}

.mt-auth-bg__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(123,66,205,0.08) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ── Container ── */
.mt-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ── Logo ── */
.mt-auth-logo {
    display: block;
    text-decoration: none;
}

.mt-auth-logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ── Panels row ── */
.mt-auth-panels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    width: 100%;
    background: rgba(30, 21, 82, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(123, 66, 205, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

/* ── Panel ── */
.mt-auth-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* ── Badge ── */
.mt-auth-panel__badge {
    display: inline-block;
    font-family: var(--mt-font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--mt-mint);
    background: rgba(83, 255, 167, 0.1);
    border: 1px solid rgba(83, 255, 167, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.mt-auth-panel__badge--mint {
    color: var(--mt-violet-light, #b98eff);
    background: rgba(123, 66, 205, 0.12);
    border-color: rgba(123, 66, 205, 0.3);
}

/* ── Título ── */
.mt-auth-panel__title {
    font-family: var(--mt-font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--mt-white);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.mt-auth-panel__sub {
    font-family: var(--mt-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(205, 195, 213, 0.5);
    margin: 0 0 2rem;
}

/* ── Form ── */
.mt-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

/* ── Field ── */
.mt-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mt-auth-field label,
.mt-auth-field .mt-auth-field__row {
    font-family: var(--mt-font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(205, 195, 213, 0.55);
}

.mt-auth-field__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mt-auth-forgot {
    font-family: var(--mt-font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mt-mint);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.mt-auth-forgot:hover {
    opacity: 1;
}

.mt-auth-field input[type="text"],
.mt-auth-field input[type="email"],
.mt-auth-field input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.1rem;
    background: rgba(19, 6, 71, 0.6) !important;
    border: 1px solid rgba(123, 66, 205, 0.25) !important;
    border-radius: 4px !important;
    color: var(--mt-white) !important;
    font-family: var(--mt-font-body);
    font-size: 0.9rem;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.mt-auth-field input:focus {
    border-color: var(--mt-violet) !important;
    box-shadow: 0 0 0 3px rgba(123, 66, 205, 0.18) !important;
}

.mt-auth-field input::placeholder {
    color: rgba(205, 195, 213, 0.25);
}

/* Autofill fix */
.mt-auth-field input:-webkit-autofill,
.mt-auth-field input:-webkit-autofill:hover,
.mt-auth-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #130647 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

/* ── Remember ── */
.mt-auth-remember {
    margin-top: -0.25rem;
}

.mt-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-family: var(--mt-font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(205, 195, 213, 0.5);
    user-select: none;
}

.mt-auth-check input[type="checkbox"] {
    display: none;
}

.mt-auth-check__box {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(123, 66, 205, 0.4);
    border-radius: 3px;
    background: rgba(19, 6, 71, 0.6);
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: relative;
}

.mt-auth-check input:checked ~ .mt-auth-check__box {
    background: var(--mt-violet);
    border-color: var(--mt-violet);
}

.mt-auth-check input:checked ~ .mt-auth-check__box::after {
    content: '';
    position: absolute;
    left: 3px; top: 1px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Note ── */
.mt-auth-note {
    font-family: var(--mt-font-body);
    font-size: 0.75rem;
    color: rgba(205, 195, 213, 0.45);
    font-style: italic;
    margin: -0.5rem 0 0;
}

/* ── Buttons ── */
.mt-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    font-family: var(--mt-font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    text-decoration: none;
}

.mt-auth-btn--primary {
    background: var(--mt-mint);
    color: var(--mt-navy);
    box-shadow: 0 8px 24px rgba(83, 255, 167, 0.25);
}

.mt-auth-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(83, 255, 167, 0.4);
    color: var(--mt-navy);
}

.mt-auth-btn--secondary {
    background: var(--mt-violet);
    color: var(--mt-white);
    box-shadow: 0 8px 24px rgba(123, 66, 205, 0.3);
}

.mt-auth-btn--secondary:hover {
    transform: translateY(-2px);
    background: #8f52d9;
    box-shadow: 0 12px 32px rgba(123, 66, 205, 0.45);
    color: var(--mt-white);
}

/* ── Divider ── */
.mt-auth-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
}

.mt-auth-divider::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(123, 66, 205, 0.3) 30%,
        rgba(123, 66, 205, 0.3) 70%,
        transparent
    );
}

.mt-auth-divider span {
    font-family: var(--mt-font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(205, 195, 213, 0.3);
    background: rgba(30, 21, 82, 0.8);
    padding: 0.5rem 0.6rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(123, 66, 205, 0.2);
    border-radius: 2px;
}

/* ── WC notices dentro del wrap ── */
.mt-auth-wrap .woocommerce-notices-wrapper,
.mt-auth-wrap .woocommerce-error,
.mt-auth-wrap .woocommerce-message,
.mt-auth-wrap .woocommerce-info {
    width: 100%;
    max-width: 900px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mt-auth-panels {
        grid-template-columns: 1fr;
    }

    .mt-auth-divider {
        flex-direction: row;
        padding: 0 2rem;
    }

    .mt-auth-divider::before {
        top: 50%; bottom: auto;
        left: 0; right: 0;
        width: 100%; height: 1px;
    }

    .mt-auth-divider span {
        padding: 0.4rem 0.8rem;
    }

    .mt-auth-panel {
        padding: 2rem 1.5rem;
    }

    .mt-auth-btn {
        margin-top: 1.5rem;
    }
}
