/* ── SciGate Frontend Styles ─────────────────────── */

.scigate-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: 'DM Sans', sans-serif;
}

.scigate-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.scigate-logo-mark {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #00E5FF;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.scigate-heading {
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.scigate-subheading {
    font-size: 14px;
    color: #94A3B8;
    text-align: center;
    margin: 0 0 32px;
    font-family: 'Source Serif 4', serif;
}

.scigate-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-bottom: 6px;
}

.scigate-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 15px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.scigate-field input::placeholder {
    color: #4B5563;
}

.scigate-field input:focus {
    border-color: #00E5FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
    background: rgba(0, 229, 255, 0.03);
}

.scigate-btn-primary {
    width: 100%;
    padding: 12px;
    background: #00E5FF;
    color: #02040A;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    margin-top: 8px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.scigate-btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    transform: scale(1.02);
}

.scigate-btn-google,
.scigate-btn-microsoft {
    width: 100%;
    padding: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
}

.scigate-btn-google:hover,
.scigate-btn-microsoft:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.05);
    color: #FFFFFF;
}

.scigate-btn-microsoft {
    margin-top: 8px;
}

.scigate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #4B5563;
    font-size: 12px;
}

.scigate-divider::before,
.scigate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.scigate-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #FCA5A5;
    margin-bottom: 20px;
}

.scigate-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #34D399;
    margin-bottom: 20px;
}

.scigate-footer-link {
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
    margin-top: 24px;
}

.scigate-footer-link a {
    color: #00E5FF;
    text-decoration: none;
}

.scigate-selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    padding: 7px 12px;
    margin-top: 8px;
    font-size: 13px;
    color: #00E5FF;
}

.scigate-gate {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.scigate-gate-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.scigate-gate-title { font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 600; color: #FFFFFF; margin: 0 0 0.75rem; }
.scigate-gate-text { font-family: 'Source Serif 4', serif; color: #94A3B8; font-size: 1rem; margin: 0 0 1.5rem; line-height: 1.6; }

.scigate-gate-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: #00E5FF;
    color: #02040A;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.scigate-gate-btn:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    transform: scale(1.02);
    color: #02040A;
}

.scigate-gate-btn-outline {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00E5FF;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.2s;
}

.scigate-gate-btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
}

.scigate-upgrade-gate {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.scigate-logo {
    text-align: center;
    margin-bottom: 32px;
}

.scigate-logo-mark {
    width: 48px;
    height: 48px;
    background: #1A1A2E;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.scigate-heading {
    font-size: 22px;
    font-weight: 500;
    color: #1A1A2E;
    text-align: center;
    margin: 0 0 6px;
}

.scigate-subheading {
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    margin: 0 0 32px;
    font-family: 'Source Serif 4', serif;
}

/* Fields */
.scigate-field {
    margin-bottom: 16px;
}

.scigate-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A1A2E;
    margin-bottom: 6px;
}

.scigate-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1A1A2E;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.scigate-field input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* Buttons */
.scigate-btn-primary {
    width: 100%;
    padding: 12px;
    background: #1A1A2E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.scigate-btn-primary:hover {
    opacity: 0.85;
}

.scigate-btn-google {
    width: 100%;
    padding: 11px;
    background: #ffffff;
    color: #1A1A2E;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s;
    text-decoration: none;
}

.scigate-btn-google:hover {
    border-color: #2563EB;
}

.scigate-btn-microsoft {
    width: 100%;
    padding: 11px;
    background: #ffffff;
    color: #1A1A2E;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s;
    text-decoration: none;
    margin-top: 8px;
}

.scigate-btn-microsoft:hover {
    border-color: #2563EB;
}

/* Divider */
.scigate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9CA3AF;
    font-size: 12px;
}

.scigate-divider::before,
.scigate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f3f4f6;
}

/* Error / success messages */
.scigate-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #991B1B;
    margin-bottom: 20px;
}

.scigate-success {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #065F46;
    margin-bottom: 20px;
}

/* Footer link */
.scigate-footer-link {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    margin-top: 24px;
}

.scigate-footer-link a {
    color: #2563EB;
    text-decoration: none;
}

/* ── Content restriction gates ───────────────────── */

.scigate-gate {
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: #EFF6FF;
    margin: 32px 0;
}

.scigate-gate-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.scigate-gate-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1A1A2E;
    margin: 0 0 8px;
}

.scigate-gate-text {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

.scigate-gate-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1A1A2E;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.scigate-gate-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

.scigate-gate-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #2563EB;
    color: #2563EB;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.2s;
}

.scigate-gate-btn-outline:hover {
    background: #2563EB;
    color: #ffffff;
}

/* ── Upgrade section ─────────────────────────────── */
.scigate-upgrade-gate {
    border: 1px solid #D1FAE5;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: #F0FDF4;
    margin: 32px 0;
}