:root {
    --purple: #8A00C4;
    --pink: #ff69b4;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(138, 0, 196, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 650px;
}

/* --- Left Section: Form --- */
.login-form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.brand-header span {
    color: #ff69b4;;
}

.header-text {
    margin-bottom: 30px;
}

.header-text h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.header-text p {
    color: var(--text-gray);
}

/* Role Toggle Switch */
.role-toggle-container {
    background: #f1f5f9;
    padding: 5px;
    border-radius: var(--radius);
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.role-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.role-btn.active {
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1rem;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    cursor: pointer;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 45px; /* Padding accommodates icons */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(138, 0, 196, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.remember-me input {
    accent-color: var(--purple);
}

.forgot-password {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--pink);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(to right, var(--purple), var(--pink));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit a{
    text-decoration: none;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 0, 196, 0.3);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 10px;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: var(--text-gray);
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.signup-link a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* --- Right Section: Visual --- */
.login-visual-section {
    flex: 1;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for background */
.login-visual-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-visual-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.visual-content {
    color: var(--white);
    text-align: center;
    z-index: 2;
    max-width: 400px;
}

.visual-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-visual-section {
        display: none;
    }
    
    .login-card {
        min-height: auto;
    }
    
    .login-form-section {
        padding: 30px 20px;
    }
}




