/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 40px;
    background: linear-gradient(135deg, #40A8C4, #235784);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================
   2. CARD CONTAINER
   ========================================== */
.login-card {
    width: 800px;
    max-width: 90%;
    height: 470px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   3. LEFT SIDE (IMAGE)
   ========================================== */
.left {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}

.left img:hover {
    transform: scale(1.03);
}

/* ==========================================
   4. RIGHT SIDE (LOGIN FORM)
   ========================================== */
.right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.form-box {
    width: 280px;
}

/* ==========================================
   5. TYPOGRAPHY
   ========================================== */
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #235784;
    margin-bottom: 10px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #235784;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* ==========================================
   6. INPUT
   ========================================== */
.form-control {
    height: 42px;
    border-radius: 22px;
    border: 2px solid #dfe9ef;
    padding-left: 16px;
    font-size: 14px;
    transition: .3s;
}

.form-control:focus {
    border-color: #40A8C4;
    box-shadow: 0 0 10px rgba(64, 168, 196, .2);
}

/* ==========================================
   7. BUTTON
   ========================================== */
.btn-login {
    height: 42px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(90deg, #40A8C4, #235784);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.btn-login:hover {
    background: linear-gradient(90deg, #235784, #40A8C4);
    transform: translateY(-2px);
}

/* ==========================================
   8. ALERT
   ========================================== */
.alert {
    font-size: 13px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ==========================================
   9. FOOTER
   ========================================== */
.footer-text {
    margin-top: 15px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

/* ==========================================
   10. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .login-card {
        width: 100%;
        height: auto;
    }

    .left {
        display: none;
    }

    .right {
        padding: 35px 25px;
    }

    .form-box {
        width: 100%;
        max-width: 320px;
    }
}