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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF4E6;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 94, 43, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(37, 94, 43, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 244, 230, 0.4) 0%, transparent 60%);
    animation: rotateBackground 40s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    background: #FFFFFF;
    border-radius: 40px;
    box-shadow: 0 50px 120px rgba(37, 94, 43, 0.12), 0 10px 40px rgba(37, 94, 43, 0.06);
    overflow: hidden;
    min-height: 600px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-wrapper:hover {
    box-shadow: 0 60px 140px rgba(37, 94, 43, 0.16);
}

.login-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #FFFFFF;
}

.login-right {
    flex: 1;
    background: linear-gradient(145deg, #255E2B, #237227);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

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

.login-title h1 {
    font-size: 35px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-title p {
    color: #7E7E7F;
    font-size: 15px;
    font-weight: 400;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4D4848;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #E2E5EB;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    background: #FFFFFF;
    color: #000000;
    transition: all 0.3s ease;
    height: 54px;
    font-family: 'Inter', sans-serif;
}

.input-wrapper .form-control:focus {
    border-color: #255E2B;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 94, 43, 0.08);
    outline: none;
}

.input-wrapper .form-control::placeholder {
    color: #CBCBCB;
    font-weight: 400;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7E7E7F;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-wrapper .form-control:focus + .input-icon {
    color: #255E2B;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7E7E7F;
    font-size: 18px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.input-wrapper .toggle-password:hover {
    color: #255E2B;
}

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

.form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4D4848;
    cursor: pointer;
    font-weight: 500;
}

.form-options .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #255E2B;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #E2E5EB;
    transition: all 0.2s ease;
}

.form-options .forgot-link {
    color: #255E2B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-options .forgot-link:hover {
    color: #237227;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #255E2B, #237227);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 54px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 94, 43, 0.35);
    background: linear-gradient(135deg, #237227, #255E2B);
}

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

.btn-login .btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.btn-login .spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.btn-login.loading .spinner {
    display: block;
}

.btn-login.loading .btn-content {
    opacity: 0;
}

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

.alert {
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #43A047;
}

.alert-danger {
    background: #fce4ec;
    color: #c62828;
    border-left: 4px solid #D94B3E;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer p {
    color: #7E7E7F;
    font-size: 13px;
    font-weight: 400;
}

.login-footer .highlight {
    color: #255E2B;
    font-weight: 600;
}

.right-content {
    text-align: center;
    color: #FFFFFF;
    z-index: 1;
    position: relative;
}

.right-content .big-icon {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
    color: #FFFFFF;
}

.right-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.right-content p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 300;
    color: #FFFFFF;
}

.right-content .feature-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.right-content .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.right-content .feature-item i {
    font-size: 20px;
    opacity: 0.9;
    width: 24px;
    text-align: center;
    color: #FFFFFF;
}

.right-content .feature-item span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    color: #FFFFFF;
}

@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
        border-radius: 30px;
        min-height: auto;
    }

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

    .login-right {
        padding: 50px 30px;
        border-radius: 0 0 30px 30px;
    }

    .right-content .feature-list {
        display: none;
    }

    .right-content h2 {
        font-size: 26px;
    }

    .login-title h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 30px 20px;
    }

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

    .form-options {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .input-wrapper .form-control {
        height: 48px;
        padding: 12px 14px 12px 44px;
        font-size: 13px;
    }

    .btn-login {
        height: 48px;
        font-size: 14px;
    }

    .login-wrapper {
        border-radius: 24px;
    }
}