/* ========== GLOBAL STYLES ========== */
body {
    background-color: #f5efe1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.login-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    width: 90%;
    max-width: 950px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ========== BRAND SECTION ========== */
.brand-section {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #ef9f37, #da542a);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background image */
.brand-bg-image {
    position: absolute;
    bottom: 0px;
    width: 450px;
    opacity: 0.3;
}


.brand-logo {
    width: 160px;
    top: 30px;
    margin-bottom: 1.5rem;
    z-index: 2;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

.brand-heading {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    z-index: 2;
}

.brand-subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #f5efe1;
    z-index: 2;
}

/* ========== LOGIN FORM SECTION ========== */
.form-section {
    flex: 1;
    min-width: 300px;
    background: #f5f0e1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    color: #da542a;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: #555;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-label {
    display: block;
    color: #444;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid #ef9f37;
    border-radius: 10px;
    color: #333;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: #da542a;
    box-shadow: 0 0 0 3px rgba(218, 84, 42, 0.2);
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #ef9f37, #da542a);
    border: none;
    width: 100%;
    padding: 0.8rem;
    font-weight: 600;
    color: #fff;
    border-radius: 10px;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(218, 84, 42, 0.25);
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-login:active {
    transform: scale(0.97)
}

.link-forgot {
    display: block;
    text-align: right;
    margin-top: 1rem;
    color: #da542a;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-forgot:hover {
    color: #db7d68;
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 95%;
    }

    .brand-section {
        padding: 2rem;
    }

    .form-section {
        padding: 2rem;
    }

    .brand-bg-image {
        display: none;
        /* hide floating image on small screens */
    }
}