* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #475569;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(360deg,white,rgba(255, 255, 0, 0.288));
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
} */

.sl{
    display: flex;
    align-items: center;
    justify-content: center;
    color: darkcyan;
   
    
}
.sl span{
    color: var(--primary);
}

.container {
    position: relative;
    z-index: 1;
   
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-page {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.login-sidebar {
    flex: 1;
    background:rgb(30, 41, 59);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px 0px 0px 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInLeft 1s ease;
}
.login-sidebar i{
    color: yellow;
}

.login-content {
    flex: 1;
    background: rgb(30, 41, 59);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 0px 20px 20px 0px;
    padding: 3rem;
    animation: slideInRight 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #10b981;
    display: flex;
    flex-direction: row;
    justify-content:space-between;
   
  
}   
.footer p {
    margin: 5px 0;
    color:black;
    font-size: 0.8rem;
}

.footer span {
    font-weight: 600;
    color:yellow;
}

.container h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
  

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-btn {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}



.role-btn.active {
    background: var(--primary);
    color: white;
}
.edu-img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius:50%}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(51, 65, 85, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder {
    color: var(--text-secondary);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--secondary);
    color: #86efac;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        gap: 1rem;
    }

    .login-sidebar {
        padding: 2rem 1.5rem;
    }

    .login-content {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }
}