@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    --primary-color: #e74c3c;
    --primary-hover: #c0392b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border-color: #dcdde1;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.login-page {
    background-color: var(--bg-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(231, 76, 60, 0.05) 0%, transparent 40%);
}

.login-box {
    width: 950px !important;
    max-width: 95%;
    margin: 0 auto !important;
    perspective: 1000px;
}

.login-redesign-container {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 600px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.login-left-side {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    text-align: center;
}

.login-left-side::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left-side::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left-side h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    z-index: 1;
}

.login-left-side p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 350px;
    z-index: 1;
}

.login-right-side {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right-side h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.login-right-side .subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

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

.login-divider:not(:empty)::before {
    margin-right: .5em;
}

.login-divider:not(:empty)::after {
    margin-left: .5em;
}

.login-divider span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

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

.form-group label span {
    color: var(--primary-color);
}

.form-control.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: auto;
}

.form-control.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    outline: none;
}

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

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-light);
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.btn-login i {
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-redesign-container {
        flex-direction: column;
        width: 100%;
    }

    .login-left-side {
        padding: 40px 20px;
    }

    .login-right-side {
        padding: 40px 20px;
    }

    .login-box {
        width: 100% !important;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: var(--radius);
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.modal.login-modal .modal-dialog {
    max-width: 450px !important;
}

.auth-box {
    width: 100%;
}

.modal-right-side .close,
.modal-content .close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-content .close:hover {
    opacity: 1;
}

/* Fix for modal being behind header/mega-menu */
.modal {
    z-index: 10050 !important;
}

.modal-backdrop {
    z-index: 10040 !important;
}

.login-inner-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.login-inner-logo img {
    max-height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
}

.login-inner-logo a:hover img {
    opacity: 0.8;
}