/* MIREB WI-FI — CAPTIVE PORTAL STYLES */

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

body.mireb-portal-page {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mireb-portal-container {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.mireb-portal-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

.mireb-portal-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
}

.mireb-portal-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

/* TABS */
.portal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 4px;
}

.portal-tab {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: all .2s;
    border: none;
    background: transparent;
}

.portal-tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* FORM */
.portal-form { display: none; }
.portal-form.active { display: block; }

.portal-input-group {
    position: relative;
    margin-bottom: 14px;
}

.portal-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}

.portal-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: border .2s;
}

.portal-input::placeholder { color: rgba(255,255,255,0.4); }
.portal-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

.portal-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.portal-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.5); }
.portal-btn:active { transform: translateY(0); }

.portal-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* MESSAGE */
.portal-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: none;
}
.portal-message.success { background: rgba(22,163,74,0.2); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
.portal-message.error   { background: rgba(220,38,38,0.2); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }

/* FOOTER */
.portal-footer {
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

.portal-signal-bars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 16px;
}
.portal-signal-bar {
    width: 4px;
    background: #3b82f6;
    border-radius: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}
.portal-signal-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.portal-signal-bar:nth-child(2) { height: 14px; animation-delay: .2s; }
.portal-signal-bar:nth-child(3) { height: 20px; animation-delay: .4s; }
.portal-signal-bar:nth-child(4) { height: 14px; animation-delay: .6s; }
.portal-signal-bar:nth-child(5) { height: 8px; animation-delay: .8s; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* LOADING SPINNER */
.portal-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
