:root {
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light));
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}



/* Login Container */
/* .login-container {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #2E5077 0%, #4A6FA5 50%, #F6C794 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
} */


/* Login Container */
.login-container {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* background: linear-gradient(135deg, #2E5077 0%, #4A6FA5 50%, #F6C794 100%); */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Floating Animation Keyframes */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    25% { transform: translate(30px, -40px) rotate(90deg); opacity: 0.7; }
    50% { transform: translate(-20px, -80px) rotate(180deg); opacity: 0.4; }
    75% { transform: translate(-50px, -40px) rotate(270deg); opacity: 0.8; }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    33% { transform: translate(-40px, 60px) rotate(120deg); opacity: 0.6; }
    66% { transform: translate(60px, -30px) rotate(240deg); opacity: 0.5; }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(20px, -50px) scale(1.2); opacity: 0.6; }
}

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

/* Animated Background Elements */
.login-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(246, 199, 148, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
    pointer-events: none;
}

/* Additional Floating Elements */
.login-container .floating-element-1 {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 40px;
    height: 40px;
    background: rgba(166, 206, 227, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float3 12s ease-in-out infinite;
    pointer-events: none;
}

.login-container .floating-element-2 {
    position: absolute;
    top: 60%;
    left: 5%;
    width: 25px;
    height: 25px;
    background: rgba(246, 199, 148, 0.3);
    border-radius: 50%;
    animation: float1 15s ease-in-out infinite reverse;
    pointer-events: none;
}

.login-container .floating-element-3 {
    position: absolute;
    top: 30%;
    left: 80%;
    width: 35px;
    height: 35px;
    background: rgba(74, 111, 165, 0.25);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float2 9s ease-in-out infinite;
    pointer-events: none;
}

.login-container .floating-element-4 {
    position: absolute;
    bottom: 25%;
    left: 25%;
    width: 50px;
    height: 50px;
    background: rgba(46, 80, 119, 0.15);
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    animation: float3 11s ease-in-out infinite;
    pointer-events: none;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(46, 80, 119, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float2 10s ease-in-out infinite;
    pointer-events: none;
}



/* Login Section */
.login-container section {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 
        0 20px 60px rgba(46, 80, 119, 0.15),
        0 8px 25px rgba(46, 80, 119, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.login-container section::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;

}

/* Login Heading */
.login-heading {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    animation: slideInLeft 0.6s ease 0.2s both;
}

.login-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: calc(50% - 30px);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    animation: slideInLeft 0.8s ease 0.4s both;
}

/* Login Subtitle */
.login-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 35px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Login Logo */
.login-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 0;
    filter: drop-shadow(0 8px 25px rgba(46, 80, 119, 0.2));
    animation: bounceIn 1s ease 0.1s both;
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 12px 35px rgba(46, 80, 119, 0.3));
}

/* Login Input Container */
.login-input {
    margin: 20px 0;
    position: relative;
    animation: fadeInUp 0.6s ease calc(0.4s + var(--delay, 0s)) both;
}

.login-input:nth-child(1) { --delay: 0s; }
.login-input:nth-child(2) { --delay: 0.1s; }
.login-input:nth-child(3) { --delay: 0.2s; }

/* Input Fields */
.login-input input[type='email'],
.login-input input[type='password'],
.login-input input[type='text'] {
    width: 100%;
    padding: 16px 20px 16px 65px;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    box-shadow: 0 4px 15px rgba(46, 80, 119, 0.08);
}

.login-input input[type='email']:focus,
.login-input input[type='password']:focus,
.login-input input[type='text']:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(46, 80, 119, 0.1),
        0 8px 25px rgba(46, 80, 119, 0.15);
    transform: translateY(-2px);
}

.login-input input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Input Icons */
.login-input .icon-div {
    position: absolute;
    left: 0;
    top: 0;
    width: 55px;
    height: 100%;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px 0 0 12px;
    background: rgba(46, 80, 119, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
}

.login-input .icon-div i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.login-input input:focus + .icon-div,
.login-input:hover .icon-div {
    background: rgba(46, 80, 119, 0.1);
    color: var(--primary-color);
}

.login-input input:focus + .icon-div i {
    transform: scale(1.1);
}

/* Floating Labels */
.login-input .floating-label {
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 8px;
    border-radius: 4px;
    z-index: 2;
}

.login-input input:focus ~ .floating-label,
.login-input input:not(:placeholder-shown) ~ .floating-label {
    top: -2px;
    left: 55px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(255, 255, 255, 1);
}

.floating-label.active {
    top: 0;
    left: 15px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Alternative: Hide placeholder when not focused */
.login-input input:not(:focus)::placeholder {
    opacity: 0;
}

.login-input input:focus::placeholder {
    opacity: 0.7;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px 0;
    margin-top: 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(46, 80, 119, 0.3);
    animation: fadeInUp 0.6s ease 0.7s both;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 80, 119, 0.4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.login-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(46, 80, 119, 0.3);
}

/* Remember Me & Forgot Password */
.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember-me:hover {
    color: var(--primary-color);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}


/* Success/Error Messages */
.message {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading State */
.login-button.loading {
    pointer-events: none;
    background: var(--text-light);
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.field-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeInUp 0.3s ease;
    position: absolute;
}

.login-input input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    z-index: 3;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.additional-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}


.institution-info {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.college-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 14px;
    text-decoration: none;
}

.college-location {
    color: var(--text-light);
    font-size: 13px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 80, 119, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}


.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.login-input.focused .icon-div {
    background: rgba(46, 80, 119, 0.15);
}



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

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-container section {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .login-heading {
        font-size: 1.75rem;
    }
    
    .login-input input[type='email'],
    .login-input input[type='password'],
    .login-input input[type='text'] {
        padding: 14px 18px 14px 50px;
        font-size: 15px;
    }
    
    .login-input .icon-div {
        width: 50px;
    }
    
    .login-button {
        padding: 14px 0;
        font-size: 15px;
    }
    
    .login-extras {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-container section {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-heading {
        font-size: 1.5rem;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
}