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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fdfb;
    overflow-x: hidden;
}

.orangeBtn {
    background-color: #FF7423;
    /* original color */
    color: white;
    transition: all 0.3s ease;
}

.orangeBtn:hover {
    background-color: white;
    border: 1px solid #FF7423;
    color: #FF7423;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    animation: fadeIn 1.2s ease;
    padding: 20px;
    /* ✅ adds horizontal & vertical space */
    overflow-x: hidden;
    /* ✅ prevents horizontal scroll */
}

.login-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    animation: slideUp 1.5s ease;
}

/* Left side */
.login-left {
    background-color: #d1fae5;
    flex: 1 1 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: floatIn 1.3s ease;
}

.login-left img {
    width: 250px;
    height: 250px;
    max-width: 350px;
    animation: bounceIn 2s infinite alternate;
}

.login-left h3 {
    font-weight: 700;
    color: #111;
    margin-top: 25px;
}

.login-left span {
    color: #10b981;
}

.login-left p {
    color: #333;
    font-size: 14px;
    text-align: center;
    max-width: 400px;
    margin-top: 10px;
}

/* Right side */
.login-right {
    flex: 1 1 50%;
    padding: 50px 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #10b981;
    padding: 10px 15px;
    transition: 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

/* Input Group Styling */
.input-group-text {
    background-color: transparent;
    border: 1px solid #10b981;
    color: #10b981;
}

/* First Element (Left Icon) */
.input-group> :first-child {
    border-right: none;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Middle Element (Input in Password) */
.input-group> :not(:first-child):not(:last-child) {
    border-right: none;
    border-radius: 0 !important;
}

/* Last Element (Input in Username OR Right Icon in Password) */
.input-group> :last-child {
    border-left: none;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Fix for form-control inside group to ensure borders match */
.input-group .form-control {
    border: 1px solid #10b981;
    padding: 10px 15px;
}

.input-group .form-control:focus {
    box-shadow: none;
    /* Optional: remove shadow if it looks weird with split borders */
    border-color: #10b981;
}

.input-group-text>i {
    padding: 8px;
}

.btn-login {
    background-color: #10b981;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-login:hover {
    background-color: #0ea37e;
    transform: scale(1.03);
    box-shadow: 0px 4px 10px rgba(16, 185, 129, 0.3);
}

.forgot-link {
    text-align: right;
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #111;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #10b981;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes bounceIn {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        flex: 1 1 100%;
        text-align: center;
        padding: 40px 25px;
    }

    .login-left img {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .login-right h2 {
        font-size: 24px;
    }

    .login-right form {
        margin-left: -20px;
    }
}