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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1621 100%);
    color: #ecf0f1;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar - Same as terms.css */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    padding: 12px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo-placeholder {
    width: 160px;
    height: 160px;
    background: rgba(94, 179, 224, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #5eb3e0;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #f5a855;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff8c42;
}

/* Portal Container */
.portal-container {
    max-width: 1400px;
    margin: 220px auto 80px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Login Box */
.login-box {
    background: rgba(15, 22, 33, 0.8);
    border: 1px solid rgba(94, 179, 224, 0.2);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portal-header {
    text-align: center;
    margin-bottom: 40px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(94, 179, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(94, 179, 224, 0.3);
}

.portal-header h1 {
    font-size: 36px;
    color: #5eb3e0;
    margin-bottom: 10px;
}

.subtitle {
    color: #bdc3c7;
    font-size: 16px;
}

/* Login Form */
.login-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #5eb3e0;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid rgba(94, 179, 224, 0.2);
    border-radius: 10px;
    color: #ecf0f1;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #5eb3e0;
    background: rgba(10, 14, 26, 0.8);
    box-shadow: 0 0 20px rgba(94, 179, 224, 0.2);
}

.form-group input::placeholder {
    color: #7f8c8d;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdc3c7;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: #f5a855;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ff8c42;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5eb3e0 0%, #3498db 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(94, 179, 224, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 179, 224, 0.6);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    color: #e74c3c;
}

.error-message svg {
    flex-shrink: 0;
}

/* Portal Features */
.portal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(94, 179, 224, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdc3c7;
    font-size: 14px;
}

/* Portal Info */
.portal-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(94, 179, 224, 0.2);
}

.info-item {
    margin-bottom: 15px;
    font-size: 14px;
}

.info-item strong {
    color: #5eb3e0;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #bdc3c7;
    margin: 0;
}

.info-item a {
    color: #f5a855;
    text-decoration: none;
}

.info-item a:hover {
    color: #ff8c42;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.4);
    border-radius: 20px;
    color: #27ae60;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Sidebar */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: rgba(15, 22, 33, 0.6);
    border: 1px solid rgba(94, 179, 224, 0.15);
    border-radius: 15px;
    padding: 30px;
}

.sidebar-card h3 {
    color: #f5a855;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(94, 179, 224, 0.2);
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    font-size: 15px;
}

.quick-links a:hover {
    color: #5eb3e0;
    padding-left: 10px;
}

.announcement {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(94, 179, 224, 0.1);
}

.announcement:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announcement .date {
    color: #f5a855;
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.announcement p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.update-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(94, 179, 224, 0.1);
}

.update-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.update-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.update-item strong {
    color: #5eb3e0;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.update-item p {
    color: #bdc3c7;
    font-size: 13px;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0d1621 0%, #0a0e1a 100%);
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(94, 179, 224, 0.2);
}

.footer p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .portal-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .portal-container {
        margin-top: 120px;
        padding: 0 20px;
    }
    
    .login-box {
        padding: 30px;
    }
    
    .portal-header h1 {
        font-size: 28px;
    }
    
    .portal-features {
        grid-template-columns: 1fr;
    }
}