@import url('https://use.typekit.net/swj7cvu.css');

/* ─── Gate Overlay ────────────────────────────────────────── */

.rede-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: redeFadeIn 0.3s ease;
}

.rede-gate-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(242, 109, 68, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(242, 109, 68, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes redeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── Close Button ────────────────────────────────────────── */

.rede-gate-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.rede-gate-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Modal Card ──────────────────────────────────────────── */

.rede-gate-modal {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 44px 36px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ─── Logo ────────────────────────────────────────────────── */

.rede-gate-logo {
    margin-bottom: 24px;
}

.rede-gate-logo img {
    max-width: 100px;
    height: auto;
}

/* ─── Typography ──────────────────────────────────────────── */

.rede-gate-modal h2 {
    color: #fff;
    font-family: 'filson-pro', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.rede-gate-modal p {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'filson-pro', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* ─── Form ────────────────────────────────────────────────── */

.rede-gate-form input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'filson-pro', sans-serif;
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.rede-gate-form input:focus {
    border-color: rgba(242, 109, 68, 0.4);
    box-shadow: 0 0 12px rgba(242, 109, 68, 0.08);
}

.rede-gate-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.rede-gate-row {
    display: flex;
    gap: 10px;
}

.rede-gate-row input {
    flex: 1;
}

/* ─── Button ──────────────────────────────────────────────── */

.rede-gate-form button {
    width: 100%;
    padding: 13px;
    background: #f26d44;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: 'filson-pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.rede-gate-form button:hover {
    background: #e05e38;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 109, 68, 0.25);
}

.rede-gate-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Links ───────────────────────────────────────────────── */

.rede-gate-login-link {
    font-family: 'filson-pro', sans-serif;
    font-size: 12px !important;
    margin-top: 16px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 300 !important;
}

.rede-gate-login-link a {
    color: #f26d44 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

.rede-gate-login-link a:hover {
    color: #e05e38 !important;
}

/* ─── Messages ────────────────────────────────────────────── */

#rede-gate-message {
    margin-top: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    font-family: 'filson-pro', sans-serif;
    font-size: 13px;
    font-weight: 300;
}

#rede-gate-message.success {
    background: rgba(242, 109, 68, 0.1);
    color: #f26d44;
    border: 1px solid rgba(242, 109, 68, 0.2);
}

#rede-gate-message.error {
    background: rgba(200, 80, 80, 0.1);
    color: #e07070;
    border: 1px solid rgba(200, 80, 80, 0.2);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 480px) {
    .rede-gate-modal {
        padding: 32px 24px 28px;
        border-radius: 16px;
    }
    .rede-gate-row {
        flex-direction: column;
        gap: 0;
    }
    .rede-gate-modal h2 {
        font-size: 20px;
    }
    .rede-gate-close {
        top: 14px;
        right: 16px;
    }
}
