:root {
    --primary: #FF6B8B;
    --secondary: #4ECDC4;
    --accent: #FFD166;
    --light: #F9F7FE;
    --dark: #2A2D43;
    --gold: #FFD700;
    --purple: #9B5DE5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Enhanced with glassmorphism */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary)) 1;
    transition: var(--transition);
}

header:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.8s ease-out;
}

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(155, 93, 229, 0.3));
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.4s ease;
}

.logo:hover h1::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    animation: slideInRight 0.8s ease-out;
}

/* Navigation Links - Enhanced hover effects */
.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    transition: left 0.4s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(155, 93, 229, 0.3);
}

.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 5px 15px rgba(155, 93, 229, 0.4);
}

/* Button Styles - Enhanced with better animations */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.apply-btn {
    background: linear-gradient(135deg, var(--accent), #FF9E44);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.apply-btn:hover {
    background: linear-gradient(135deg, #FFD700, var(--accent));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.5);
}

.admin-btn {
    background: linear-gradient(135deg, var(--secondary), #2EC4B6);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #2EC4B6, var(--secondary));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
    background: none;
    border: none;
    transition: var(--transition);
}

.hamburger:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* Login Section - Enhanced like Contact Page */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 600px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(155, 93, 229, 0.1);
    animation: fadeInUp 1s ease-out;
}

.login-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(155, 93, 229, 0.3);
}

/* Login Hero - Enhanced with Contact Page Style */
.login-hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" opacity="0.1"></path></svg>');
    background-size: cover;
    animation: wave 10s ease-in-out infinite;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
}

.login-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.login-hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.features-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.features-list li:hover::before {
    left: 100%;
}

.features-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.features-list i {
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.features-list li:hover i {
    transform: scale(1.3) rotate(360deg);
}

/* Login Form Container - Enhanced */
.login-form-container {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.login-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 2px;
}

.login-header p {
    color: #666;
    margin-top: 15px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i:not(.password-toggle) {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-with-icon:focus-within i:not(.password-toggle) {
    color: var(--primary);
    transform: translateY(-50%) scale(1.2);
}

.input-with-icon input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.1);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    background: none;
    border: none;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.2);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.remember-me:hover {
    transform: translateX(5px);
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-me label {
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: var(--purple);
}

/* Login Button - Enhanced with Contact Page Effects */
.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(155, 93, 229, 0.4);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.login-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(155, 93, 229, 0.6);
}

.login-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(155, 93, 229, 0.4);
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.back-to-login a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.back-to-login a:hover::after {
    width: 100%;
}

/* Security Notice - Enhanced like Contact Items */
.security-notice {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 15px;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.6s ease;
}

.security-notice:hover::before {
    left: 100%;
}

.security-notice:hover {
    background: white;
    border-color: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.security-notice i {
    color: var(--secondary);
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.security-notice:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Alert Styles - Enhanced */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: slideInDown 0.5s ease-out;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Footer - Enhanced */
footer {
    background: linear-gradient(135deg, var(--dark), #1a1c2e);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(155, 93, 229, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

.animated {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive - Enhanced */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
        animation: fadeInUp 0.5s ease-out backwards;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }

    .login-container {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .login-hero {
        padding: 40px 30px;
        min-height: 300px;
    }

    .login-hero h2 {
        font-size: 2rem;
    }

    .login-form-container {
        padding: 40px 20px;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 100px 15px 40px;
    }

    .login-hero {
        display: none;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .input-with-icon input {
        padding: 12px 45px 12px 45px;
    }
}