.login-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    margin: 48px auto;
    /* center horizontally and give vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(100vh - 200px);
    /* try to center vertically in viewport */
}

.login-container {
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    transition: var(--transition-card);
}

/* Left Side - Branding */
.login-left {
    background: var(--text-gradient-primary);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.brand-header {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-icon i {
    font-size: 30px;
    color: var(--white);
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.brand-tagline {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 0.9;
}

.features-list i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.stats-section {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.stat-item {
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}

/* colored stat numbers */
.stats-section .stat-item:nth-child(1) .stat-number {
    color: #1e90ff;
}

.stats-section .stat-item:nth-child(2) .stat-number {
    color: #00e6bb;
}

.stats-section .stat-item:nth-child(3) .stat-number {
    color: #b19cff;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
    color: var(--secondary-text);
}

/* Right Side - Form */
.login-right {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
}

.login-header {
    margin-bottom: 35px;
}

.login-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--secondary-text);
    font-size: 15px;
}

.login-header p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-header p a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.success {
    background: rgba(0, 230, 187, 0.12);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert.error {
    background: rgba(255, 82, 82, 0.12);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.alert i {
    font-size: 18px;
}

.user-type-tabs {
    display: flex;
    background: var(--base-variant);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.user-type-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-type-tab:hover {
    color: var(--primary-color);
}

.user-type-tab.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.user-type-tab i {
    font-size: 16px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 15px 18px 15px 50px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.08);
}

.form-group input:focus+.input-icon {
    color: var(--primary-color);
}

.form-group input::placeholder {
    color: var(--secondary-text);
    opacity: 0.6;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-text);
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 8px;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.remember-me label {
    font-size: 14px;
    color: var(--secondary-text);
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.25);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 144, 255, 0.35);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--secondary-text);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    padding: 13px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: var(--base-variant);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 20px;
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.linkedin i {
    color: #0077B5;
}

.help-text {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--secondary-text);
}

.help-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 50px 40px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 15px;
    }

    .login-container {
        border-radius: 20px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}
