/* ─────────────────────────────────────────
   Email Gate Access – Gate Page Styles
   Dark Theme | Brand: #e05564
   ───────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Force FULL takeover — block everything behind */
html.ega-html {
    height: 100%;
    overflow: hidden;
}

body.ega-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d0d0d;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
img.ega-site-logo {
    border: 1px solid #fff;
}
/* Subtle dark background pattern */
body.ega-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(224, 85, 100, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(224, 85, 100, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Card ── */
.ega-card {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: ega-fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ega-fadeIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Site Logo ── */
.ega-logo-wrap {
    margin-bottom: 24px;
}

.ega-site-logo {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

/* ── Divider under logo ── */
.ega-divider {
    width: 48px;
    height: 3px;
    background: #e05564;
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* ── Title ── */
.ega-title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.ega-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ── Form ── */
#ega-request-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ega-field {
    position: relative;
}

.ega-field input[type="email"] {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    border: 1.5px solid #8f8f8f;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: #ffffff !important;
    background: #111;
}

.ega-field input[type="email"]:focus {
    border-color: #e05564;
    background: #161616;
    box-shadow: 0 0 0 4px rgba(224, 85, 100, 0.15);
}

.ega-field input[type="email"]::placeholder {
    color: #555;
}

/* ── Primary Button ── */
.ega-btn {
    width: 100%;
    padding: 14px 24px;
    background: #e05564;
    color: #fff;
    border: 2px solid #e05564;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(224, 85, 100, 0.35);
    letter-spacing: 0.3px;
}

.ega-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.ega-btn:active {
    transform: scale(0.98);
}

.ega-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Error Message ── */
.ega-error {
    font-size: 13px;
    color: #f87171;
    background: rgba(224, 85, 100, 0.1);
    border: 1px solid rgba(224, 85, 100, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    text-align: left;
}

/* ── Success / Approved States ── */
.ega-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: ega-bounce 0.4s ease;
}

@keyframes ega-bounce {
    0%   { transform: scale(0.5); opacity: 0; }
    65%  { transform: scale(1.12); }
    100% { transform: scale(1);   opacity: 1; }
}

.ega-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #e05564;
    margin-bottom: 12px;
}

.ega-success-msg {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
}

/* ── Footer note ── */
.ega-footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: #444;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .ega-card {
        padding: 32px 22px;
    }
    .ega-title {
        font-size: 19px;
    }
}
