* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: #274a75;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header.scrolled .nav-link {
    color: #fff !important;
}

.header.scrolled .logo-text {
    color: #fff !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.header.scrolled .burger-line {
    background-color: #fff;
}

/* Burger animation */
.mobile-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(39, 74, 117, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 30px;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links .nav-link {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-auth-buttons .btn {
    min-width: 200px;
    justify-content: center;
}

/* Dashboard Header */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #274a75 0%, #4a7ba7 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-logo-icon {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dashboard-user-details h3 {
    margin: 0;
    font-size: 1rem;
}

.dashboard-user-details p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.dashboard-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* END Dashboard Header */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.logo-img img {
    max-height: 100%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #274a75;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #274a75;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #274a75;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background-color: transparent;
    color: #274a75;
    border: 2px solid #274a75;
}

.btn-outline:hover {
    background-color: #274a75;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #274a75;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 74, 117, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #274a75;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #274a75 0%, #4a7ba7 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Events Section */
.events {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #274a75, #4a7ba7);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-type {
    display: inline-block;
    background-color: #274a75;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-type.free {
    background-color: #28a745;
}

.event-type.paid {
    background-color: #dc3545;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.event-meta-item i {
    color: #274a75;
}

.event-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #274a75;
    text-align: center;
    margin-top: 20px;
}

.event-price.free {
    color: #28a745;
}

/* Join Form Section */
.join-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #274a75 0%, #1e3a5f 100%);
    color: white;
    position: relative;
}

.join-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><circle cx="100" cy="50" r="30"/><circle cx="300" cy="20" r="20"/><circle cx="500" cy="80" r="25"/><circle cx="700" cy="30" r="15"/><circle cx="900" cy="60" r="35"/></svg>') repeat;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.join-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}



.form-control:focus {
    outline: none;
    border-color: #274a75;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(39, 74, 117, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #274a75, #4a7ba7);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 74, 117, 0.3);
}

/* Event Modal Specific Styles - Scoped to avoid conflicts */
#eventModal.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#eventModal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: eventModalSlideIn 0.3s ease-out;
}

@keyframes eventModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#eventModal .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#eventModal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

#eventModal .close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
    line-height: 1;
    user-select: none;
}

#eventModal .close:hover,
#eventModal .close:focus {
    color: #333;
    text-decoration: none;
}

#eventModal .modal-body {
    padding: 25px;
}

#eventModal .event-info {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#eventModal .event-info h4 {
    margin: 0 0 5px 0;
    color: #4a90e2;
    font-size: 1.1rem;
}

#eventModal .event-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

#eventModal .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

#eventModal .btn-cancel {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: transparent;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

#eventModal .btn-cancel:hover {
    border-color: #bbb;
    color: #333;
}

#eventModal .btn-submit-modal {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

#eventModal .btn-submit-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

#eventModal .btn-submit-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.event-card .btn-apply {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 15px;
    font-family: inherit;
}

.event-card .btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Form styles specifically for event modal */
#eventModal .form-group {
    margin-bottom: 20px;
}

#eventModal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

#eventModal .form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#eventModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#eventModal .success-message,
#eventModal .error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#eventModal .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#eventModal .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    #eventModal .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #eventModal .modal-header,
    #eventModal .modal-body {
        padding: 20px;
    }

    #eventModal .modal-buttons {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #274a75;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .nav {
        padding: 10px 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img img {
        height: 35px;
    }


    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-meta {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .join-form {
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


@media (max-width: 500px) {
    .mobile-nav-links .nav-link {
        font-size: 1.3rem;
    }

    .mobile-auth-buttons .btn {
        min-width: 180px;
        padding: 12px 20px;
    }

}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: none;
}


/* LOGIN page */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #274a75 0%, #4a7ba7 50%, #274a75 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" fill="white" opacity="0.05"><circle cx="100" cy="100" r="50"/><circle cx="300" cy="200" r="30"/><circle cx="500" cy="150" r="40"/><circle cx="700" cy="300" r="25"/><circle cx="900" cy="200" r="35"/><circle cx="200" cy="400" r="20"/><circle cx="600" cy="450" r="45"/><circle cx="800" cy="600" r="30"/><circle cx="150" cy="650" r="25"/><circle cx="450" cy="700" r="35"/><circle cx="750" cy="800" r="40"/><circle cx="100" cy="900" r="30"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
}

/* Left Side - Welcome */
.login-welcome {
    background: linear-gradient(135deg, #274a75, #1e3a5f);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.login-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.1"><polygon points="0,0 100,50 0,100"/></svg>') no-repeat center;
    background-size: cover;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.5;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.welcome-features i {
    color: #4a7ba7;
    width: 20px;
}

/* Right Side - Login Form */
.login-form-section {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 10px;
}

.login-form-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.login-form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.login-form-input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.login-form-input:focus {
    outline: none;
    border-color: #274a75;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(39, 74, 117, 0.1);
}

.login-form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.login-form-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
}

.login-form-input:focus+.login-form-icon {
    color: #274a75;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    z-index: 1;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #274a75;
}

/* Remember Me & Forgot Password */
.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.login-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #274a75;
}

.login-checkbox-label {
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
}

.login-forgot-link {
    color: #274a75;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-forgot-link:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #274a75, #4a7ba7);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 74, 117, 0.3);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Register Link */
.login-register-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.login-register-link a {
    color: #274a75;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-register-link a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* Alert Messages */
.login-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.login-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Spinner */
.login-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .login-welcome {
        display: none;
    }

    .login-form-section {
        padding: 40px 30px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .login-form-title {
        font-size: 1.6rem;
    }

    .login-form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }

    .login-container {
        border-radius: 15px;
    }



    .login-form-section {
        padding: 30px 20px;
    }

    .login-form-input {
        padding: 12px 15px;
        padding-left: 45px;
    }

    .login-form-icon {
        left: 15px;
    }

    .password-toggle {
        right: 15px;
    }
}

/* Additional animations */
.login-container {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Field validation styles */
.login-form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.login-form-group.has-error .login-form-error {
    display: block;
}

.login-form-group.has-error .login-form-input {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.login-form-group.has-error .login-form-icon {
    color: #dc3545;
}

/* END LOGIN page */







/* ADMIN page */
.admin-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    min-height: 100vh;
    color: #333;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #274a75 0%, #1e3a5f 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.admin-header-top {
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.admin-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Admin Navigation */
.admin-nav {
    padding: 0 30px;
}

.admin-nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.admin-nav-item {
    position: relative;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: white;
}

.admin-nav-link i {
    font-size: 16px;
}

/* Main Content */
.admin-main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 8px;
}

.admin-page-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #274a75;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.admin-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-stat-title {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.admin-stat-icon.users {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.admin-stat-icon.tests {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.admin-stat-icon.events {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.admin-stat-icon.results {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.admin-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 5px;
}

.admin-stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-stat-change.positive {
    color: #4CAF50;
}

.admin-stat-change.negative {
    color: #f44336;
}

/* Content Sections */
.admin-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #274a75;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #274a75;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.admin-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.admin-status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.admin-status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.admin-status-badge.in-progress {
    background-color: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.admin-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 2px;
}

.admin-action-btn.view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.admin-action-btn.edit {
    background-color: #fff3e0;
    color: #f57c00;
}

.admin-action-btn.delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Charts placeholder */
.admin-chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    border: 2px dashed #dee2e6;
}

/* Loading and Error States */
.admin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.admin-loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.admin-error {
    color: #d32f2f;
    text-align: center;
    padding: 20px;
    background-color: #ffebee;
    border-radius: 8px;
    margin: 10px 0;
}

/* Quick Actions */
.admin-quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-quick-action {
    background: linear-gradient(135deg, #274a75, #1e3a5f);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 74, 117, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header-top {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .admin-nav {
        padding: 0 20px;
    }

    .admin-nav-list {
        flex-direction: column;
    }

    .admin-nav-link {
        padding: 15px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .admin-nav-link:hover,
    .admin-nav-link.active {
        border-left-color: white;
        border-bottom-color: transparent;
    }

    .admin-main {
        padding: 20px;
    }

    .admin-content-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-quick-actions {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}

/* Additional utility classes */
.admin-text-center {
    text-align: center;
}

.admin-text-success {
    color: #4CAF50;
}

.admin-text-danger {
    color: #f44336;
}

.admin-text-warning {
    color: #FF9800;
}

.admin-text-info {
    color: #2196F3;
}

.admin-mb-20 {
    margin-bottom: 20px;
}

.admin-mt-20 {
    margin-top: 20px;
}

/* END ADMIN page */