/* CSS Variables for theming */
:root {
    --primary-color: #0c0c0c;
    --secondary-color: #161616;
    --accent-color: #00d4aa;
    --text-color: #ffffff;
    --text-secondary: #f8f8f8;
    --text-muted: #e0e0e0;
    --error-color: #ff6b6b;
    --success-color: #51cf66;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.portal-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Header styles */
.portal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.network-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.access-duration {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Main content */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Consent section */
.consent-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.consent-notice {
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Form styles */
.consent-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* Button styles */
.connect-btn {
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
}

.connect-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.connect-btn:active {
    transform: translateY(0);
}

/* Status section */
.status-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.timer-display {
    margin-top: 1rem;
}

.time-remaining {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
}

.timer-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Footer */
.portal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive design */
@media (max-width: 600px) {
    .portal-container {
        padding: 1rem;
    }

    .network-name {
        font-size: 2rem;
    }

    .consent-section {
        padding: 1.5rem;
    }

    .connect-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading states */
.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    opacity: 0;
}

.connect-btn.loading .btn-loader {
    opacity: 1;
}

.connect-btn.loading .btn-text {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
=======
/* Home Wi-Fi Captive Portal Styles */

/* CSS Variables for theming */
:root {
    --primary-color: #0c0c0c;
    --secondary-color: #161616;
    --accent-color: #00d4aa;
    --text-color: #ffffff;
    --text-secondary: #f8f8f8;
    --text-muted: #e0e0e0;
    --error-color: #ff6b6b;
    --success-color: #51cf66;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Universe Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: #000011; /* Deep space base color */
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 170, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 30%, rgba(0, 212, 170, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 180, 216, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(138, 43, 226, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 30% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 40%);
    animation: gradientShift 25s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(0.5deg);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: scale(1.1) rotate(1deg);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: scale(1.05) rotate(0.5deg);
        filter: hue-rotate(270deg);
    }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(0, 212, 170, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.6), 0 0 40px rgba(0, 212, 170, 0.3);
    animation: float 20s ease-in-out infinite;
}

.particle:nth-child(odd) {
    background: rgba(0, 180, 216, 0.8);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.6), 0 0 40px rgba(0, 180, 216, 0.3);
}

.particle:nth-child(3n) {
    background: rgba(138, 43, 226, 0.7);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(138, 43, 226, 0.2);
}

.particle:nth-child(4n) {
    background: rgba(255, 20, 147, 0.6);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4), 0 0 40px rgba(255, 20, 147, 0.2);
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    bottom: 40%;
    left: 15%;
    animation-delay: 8s;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 70%;
    right: 20%;
    animation-delay: 10s;
}

.particle-7 {
    width: 5px;
    height: 5px;
    top: 30%;
    left: 30%;
    animation-delay: 12s;
}

.particle-8 {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 40%;
    animation-delay: 14s;
}

.particle-9 {
    width: 6px;
    height: 6px;
    bottom: 30%;
    right: 30%;
    animation-delay: 16s;
}

.particle-10 {
    width: 4px;
    height: 4px;
    top: 50%;
    left: 50%;
    animation-delay: 18s;
}

.particle-11 {
    width: 8px;
    height: 8px;
    top: 15%;
    right: 40%;
    animation-delay: 20s;
}

.particle-12 {
    width: 2px;
    height: 2px;
    bottom: 50%;
    left: 60%;
    animation-delay: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.2);
        opacity: 0.7;
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 13, 13, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.portal-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Header styles */
.portal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.network-info {
    flex: 1;
}

.wifi-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.network-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.access-duration {
    color: var(--text-secondary);
    font-size: 1rem;
}

.security-badge {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    color: var(--accent-color);
    font-weight: 500;
}

/* Main content */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Consent section */
.consent-section {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-user-select: none;
    user-select: none;
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.consent-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.consent-notice {
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.terms-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.terms-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Form styles */
.consent-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    margin-top: 2px;
}

.checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    background: transparent;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
}

/* Button styles */
.connect-btn {
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.connect-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.connect-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.connect-btn:hover .btn-glow {
    left: 100%;
}

/* Status section */
.status-section {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--success-color);
}

.timer-display {
    margin-top: 1.5rem;
}

.timer-container {
    margin-bottom: 1rem;
}

.time-remaining {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.timer-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00b4d8);
    border-radius: 2px;
    width: 100%;
    transition: width 1s linear;
}

/* Footer */
.portal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #00b4d8;
}

.separator {
    color: var(--text-secondary);
}

/* Responsive design */
@media (max-width: 600px) {
    .portal-container {
        padding: 1rem;
    }

    .network-name {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .security-badge {
        align-self: center;
    }

    .consent-section {
        padding: 1.5rem;
    }

    .terms-links {
        flex-direction: column;
        align-items: center;
    }

    .connect-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Loading states */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.connect-btn.loading .btn-loader {
    opacity: 1;
}

.connect-btn.loading .btn-text {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
