:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #233f4b 0%, #203944 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background - Only for BRANDING side (left) */
.background-animation {
    position: fixed;
    top: 0;
    left: 0; /* Start from left side */
    width: 50%; /* Only cover half the screen - left side */
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.donut {
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: spin linear infinite;
    opacity: 0.15;
    filter: blur(0.5px);
}

.donut-1 {
    width: 300px;
    height: 300px;
    border-top: 6px solid #ff9ff3;
    border-right: 6px solid #74b9ff;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.donut-2 {
    width: 500px;
    height: 500px;
    border-top: 8px solid #81ecec;
    border-right: 8px solid #55efc4;
    bottom: 10%;
    right: 10%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.donut-3 {
    width: 200px;
    height: 200px;
    border-top: 5px solid #ffeaa7;
    border-right: 5px solid #fab1a0;
    top: 50%;
    right: 20%;
    animation-duration: 15s;
}

.donut-4 {
    width: 400px;
    height: 400px;
    border-top: 7px solid #a29bfe;
    border-right: 7px solid #fd79a8;
    bottom: 20%;
    left: 15%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.donut-5 {
    width: 350px;
    height: 350px;
    border-top: 6px solid #00cec9;
    border-right: 6px solid #e17055;
    top: 20%;
    right: 25%;
    animation-duration: 18s;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

.pulse {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 4s ease-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.glow-orb {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    filter: blur(10px);
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    flex: 1;
}

/* Brand Section - Left Side (WITH animations behind) */
.brand-section {
    flex: 1;
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Remove the grid pattern since we have animations */
.brand-content {
    text-align: center;
   
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.description  {
 color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    max-width: 250px;
    height: auto;
    
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    background: linear-gradient(135deg, #fff 0%, #bdc3c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    color: #fff;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Login Section - Right Side (Clean, no animations) */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #335c6e;
    backdrop-filter: blur(10px);
    position: relative;
}

.login-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.form-label i {
    color: var(--accent-color);
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-group input {
    transform: scale(1.1);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.forgot-password {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.forgot-password:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.support-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.support-link a:hover {
    color: var(--accent-color);
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background: #0e2a3a;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    position: relative;
    z-index: 3;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--light-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 15px;
    
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 40px 0;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-security {
    display: flex;
    gap: 15px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Toast & Loading */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--danger-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s, fadeOut 0.3s 4.7s;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .brand-section,
    .login-section {
        flex: none;
        min-height: 50vh;
    }
    
    .background-animation {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
    }
    
    .brand-content {
        padding: 20px;
    }
    
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .features {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .brand-section,
    .login-section {
        padding: 20px;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .donut {
        opacity: 0.1;
    }
}