.login-style {
    background:
        radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(101, 54, 149, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(124, 58, 237, 0.03) 50%, transparent 52%),
        linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    background-size: 400px 400px, 300px 300px, 30px 30px, 30px 30px, 100% 100%;
    background-position: 0 0, 100% 100%, 0 0, 0 0, 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {

    0%,
    100% {
        background-position: 0 0, 100% 100%, 0 0, 0 0, 0 0;
    }

    50% {
        background-position: -50px -50px, calc(100% + 50px) calc(100% + 50px), 15px 15px, -15px 15px, 0 0;
    }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    max-height: 700px;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    min-height: 540px;
}

/* Left Side - Login Form */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.login-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.welcome-header {
    margin-bottom: 20px;
    text-align: left;
}

.logo-img {
    max-width: 400px;
    height: auto;
    /* margin-bottom: 15px; */
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.welcome-emoji {
    display: none;
    font-size: 2rem;
}

.welcome-subtitle {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

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

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px !important;
    font-size: 12px !important;
    display: block;
}

.form-control {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(124, 179, 66, 0.15);
    background: var(--bg-white);
}

.form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.forgot-password {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-password a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 12px 17px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    /* margin-bottom: 30px; */
    cursor: pointer;
}

.btn-signin:hover {
    background: #432364e0;
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: #4a4a4a;
    font-size: 0.8rem;
    font-weight: 600;
}

.login-image-section {
    flex: 1.2;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.leaf-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
}

.text-primary {
    color: #653695e0 !important;
}

.sign-in-title {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    color: var(--text-dark);
    background: var(--dark-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
    /* position: relative; */
    line-height: 30px;
}

/* Responsive Design */

/* Large screens - show both form and image sections */
@media (min-width: 1200px) {
    .login-container {
        max-width: 1100px;
    }

    .login-form-section {
        padding: 70px 60px;
    }
}

/* Medium-large screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-container {
        max-width: 900px;
    }

    .login-form-section {
        padding: 50px 40px;
    }

    .welcome-title {
        font-size: 28px;
    }
}

/* Medium screens - hide image section, show only form */
@media (min-width: 768px) and (max-width: 991.98px) {
    .login-container {
        max-width: 600px;
        max-height: none;
    }

    .login-image-section {
        display: none;
    }

    .login-form-section {
        padding: 50px 40px;
        flex: 1;
    }

    .welcome-title {
        font-size: 25px;
    }

    .logo-img {
        max-width: 350px;
    }
}

/* Small screens - show only form section */
@media (max-width: 767.98px) {
    .login-container {
        max-width: 100%;
        max-height: none;
        border-radius: 20px;
        min-height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .login-image-section {
        display: none;
    }

    .login-form-section {
        padding: 35px 25px;
        flex: 1;
        justify-content: flex-start;
    }

    .login-content {
        max-width: none;
    }

    .logo-img {
        max-width: 160px;
        margin-bottom: 10px;
    }

    .welcome-header {
        margin-bottom: 15px;
        text-align: center;
    }

    .welcome-subtitle {
        font-size: 13px;
        text-align: center;
        margin-bottom: 10px;
    }

    .sign-in-title {
        font-size: 1.1rem;
        margin: 15px 0;
    }

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

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .forgot-password {
        margin-bottom: 25px;
    }

    .forgot-password a {
        font-size: 0.85rem;
    }

    .btn-signin {
        padding: 14px;
        font-size: 1rem;
        border-radius: 10px;
        /* margin-bottom: 25px; */
    }

    .signup-link {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.75rem;
        margin-top: 25px;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .login-container {
        border-radius: 16px;
    }

    .login-form-section {
        padding: 30px 20px;
    }

    .logo-img {
        max-width: 290px;
    }

    .welcome-subtitle {
        font-size: 12px;
    }

    .sign-in-title {
        font-size: 1rem;
        margin: 12px 0;
    }

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

    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-signin {
        padding: 12px;
        font-size: 0.95rem;
    }

    .signup-link {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.7rem;
        margin-top: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.login-content {
    animation: fadeInUp 0.6s ease forwards;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

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

.password-toggle:focus {
    outline: none;
    color: var(--primary-green);
}

/* In mobile media queries */
@media (max-width: 767.98px) {
    .password-field .form-control {
        padding-right: 40px;
    }
}

@media (max-width: 575.98px) {
    .password-field .form-control {
        padding-right: 38px;
    }
}

.form-control::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

@media (min-width: 1300px) and (max-width: 1400px) {
    .login-container {
        max-height: 590px !important;
    }
}

@media (min-width: 1500px) and (max-width: 1600px) {
    .login-container {
        max-height: 590px !important;
    }
}