* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Tech-oriented dark background with neon accents */
    --primary: #050A30;      /* very dark navy */
    --secondary: #0A1128;    /* deeper blue */
    --accent: #00E5FF;       /* electric cyan */
    --light: #E0F7FA;        /* light cyan for text */
    --dark: #000000;         /* pure black fallback */
    --success: #00C853;      /* bright green for success */
    --warning: #FFC107;      /* amber for warnings */
    --danger: #D50000;       /* vivid red for errors */
    --gray: #607D8B;         /* cool grey tone */
}

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(0, 229, 255, 0.1);  /* match accent color */
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Auth Container */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-box {
    background: rgba(67, 86, 99, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 248, 212, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(163, 176, 135, 0.1) 50%, transparent 70%);
    animation: shine 8s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-logo i {
    font-size: 2rem;
    color: var(--accent);
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent), var(--light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-tagline {
    font-size: 1rem;
    opacity: 0.9;
}

/* Form Styles */
.auth-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(49, 54, 71, 0.7);
    border: 1px solid rgba(255, 248, 212, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(163, 176, 135, 0.2);
}

.password-strength {
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    text-align: right;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.btn:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.success-message {
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

/* Main Content */
#main-content {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 2rem;
    text-align: center;
    background: rgba(49, 54, 71, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 248, 212, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(163, 176, 135, 0.1) 50%, transparent 70%);
    animation: shine 8s infinite linear;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(163, 176, 135, 0.5));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent), var(--light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.user-welcome {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.user-welcome span {
    font-weight: 600;
    color: var(--accent);
}

.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--warning);
    transform: translateY(-2px);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(67, 86, 99, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 248, 212, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(163, 176, 135, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(67, 86, 99, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(163, 176, 135, 0.3);
}

.card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(163, 176, 135, 0.5));
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(49, 54, 71, 0.7);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    border: 1px solid rgba(255, 248, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(163, 176, 135, 0.05) 50%, transparent 70%);
    animation: shine 10s infinite linear;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--light);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(49, 54, 71, 0.7);
    margin-top: auto;
    border-top: 1px solid rgba(255, 248, 212, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(67, 86, 99, 0.5);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(67, 86, 99, 0.8);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 29, 39, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--secondary);
    border-radius: 16px;
    padding: 2rem;
    width: 520px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 248, 212, 0.1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.modal h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: center;
}

.video-container {
    width: 100%;
    max-width: 500px;
    height: 500px;
    background: var(--primary);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 248, 212, 0.1);
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
    background: var(--dark);
}

.modal p {
    color: var(--light);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.5s ease;
    z-index: 1000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
    color: var(--primary);
}

.notification.error {
    background: var(--danger);
    color: var(--light);
}