/* ============================================
   DysLearn - Professional Login Page
   Split Screen Design with Purple Theme
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #f8fafc;
    overflow-x: hidden;
}

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

/* Left Side - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: white;
}

.brand-logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.brand-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.brand-content>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Features */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Decorative Circles */
.brand-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 15%;
}

/* Right Side - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    position: relative;
    z-index: 1;
}

.form-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: #6b7280;
}

/* Auth Forms */
.auth-form {
    display: none;
    position: relative;
    z-index: 2;
    background: transparent;
}

.auth-form.active {
    display: block;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper>i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #7c3aed;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
}

.forgot-link {
    font-size: 0.9rem;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #5b21b6;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

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

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    color: #16a34a;
    font-weight: 500;
    margin-bottom: 1rem;
}

.success-message.show {
    display: flex;
}

.success-message i {
    font-size: 1.25rem;
}

/* Form Switch */
.form-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.form-switch p {
    font-size: 0.95rem;
    color: #6b7280;
}

.switch-link {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.switch-link:hover {
    color: #5b21b6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-branding {
        padding: 2rem;
    }

    .brand-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-branding {
        padding: 2rem;
        min-height: auto;
    }

    .brand-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .brand-content>p {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .brand-features {
        display: none;
    }

    .login-form-section {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading span {
    display: none;
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Student Section Button */
.btn-student {
    width: 100%;
    padding: 1rem;
    background: #eff6ff;
    /* Light blue */
    color: #4f46e5;
    /* Indigo */
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-student:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

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

/* Login Divider */
.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: white;
}