
/* ============================================================
   CATCH THE DROP — AUTH.CSS
   Ventana de registro e inicio de sesión
   ============================================================ */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 19, 24, 0.62);
    backdrop-filter: blur(5px);
}

.auth-overlay.hidden {
    display: none !important;
}

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(90vh, 780px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid #e2e5e9;
    border-radius: 18px;
    background: #ffffff;
    color: #111318;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    font-family: Inter, ui-sans-serif, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e5e9;
    border-radius: 9px;
    background: #ffffff;
    color: #60646c;
    font-size: 22px;
    cursor: pointer;
}

.auth-close:hover {
    background: #f1f3f5;
}

.auth-heading {
    margin: 0 34px 8px 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.auth-description {
    margin: 0 0 26px;
    color: #60646c;
    font-size: 14px;
    line-height: 1.6;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 24px;
    padding: 5px;
    border-radius: 11px;
    background: #f1f3f5;
}

.auth-tab {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #60646c;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.auth-tab.active {
    background: #ffffff;
    color: #111318;
    box-shadow: 0 1px 5px rgba(17, 19, 24, 0.08);
}

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

.auth-form.hidden {
    display: none !important;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-label {
    color: #111318;
    font-size: 12px;
    font-weight: 750;
}

.auth-input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d5d9df;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #111318;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-input:focus {
    border-color: #15171c;
    box-shadow: 0 0 0 3px rgba(21, 23, 28, 0.09);
}

.auth-input::placeholder {
    color: #8a8f98;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #15171c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.auth-submit:hover {
    opacity: 0.88;
}

.auth-submit:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.auth-message {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

.auth-message.hidden {
    display: none !important;
}

.auth-message.success {
    border: 1px solid #acd8c2;
    background: #edf8f2;
    color: #087443;
}

.auth-message.error {
    border: 1px solid #efc2bd;
    background: #fff1f0;
    color: #b42318;
}

.auth-turnstile {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.auth-footer {
    margin-top: 22px;
    color: #8a8f98;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

body.auth-modal-open {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 620px) {
    .auth-overlay {
        padding: 12px;
    }

    .auth-modal {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .auth-heading {
        font-size: 24px;
    }

    .auth-description {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-close,
    .auth-tab,
    .auth-input,
    .auth-submit {
        transition: none;
    }
}
