:root {
    --primary-color: #799ecd;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    background-color: transparent !important;
    padding: 30px 0;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin: 0 20px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* HERO SECTION (Portal specific) */
.hero-section {
    padding-top: 80px;
    max-width: 700px;
}

.display-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -3px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 500px;
}

/* ACCESS CARDS (Portal specific) */
.access-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.access-card:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* LOGIN LAYOUT */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* FORM STYLES */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: #1a1a1a;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* BUTTONS */
.btn-primary-dark {
    width: 100%;
    padding: 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-dark:hover {
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

/* LINKS */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* ERROR MESSAGES */
.error-box {
    background: rgba(255, 80, 80, 0.2);
    color: #ffcccc;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 8px;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

@media (max-width: 768px) {
    .display-title {
        font-size: 3.5rem;
    }
}