* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #8c8c8c, #f9f9f9); /* dark grey → whitish grey */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Main container */
.page-container {
    display: flex;
    gap: 50px;
}

/* Left image card */
/*
.image-card {
    position: relative;
    width: 620px;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the card nicely *//*
}
*/

/* Left image card */
.image-card {
    width: 620px;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    background: #c7c7c7;   /* background around image */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.image-card img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    object-fit: contain;
}


/* Login card */
.login-card {
    width: 480px;
    height: 550px;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.logo {
    text-align: center;
}

.logo img {
    width: 80px;
    height: 80px;
}

.login-card h3 {
    margin: 20px 0 25px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Form */
.form-group {
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #999;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.form-group input::placeholder {
    color: #666;
}

/* Password */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 36px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 15px;
}

.password-toggle:hover {
    color: #374151;
}

/* Forgot password */
.forgot {
    text-align: right;
    margin-bottom: 25px;
}

.forgot a {
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 65px;
}

.login-btn:hover {
    background: #000;
}

/* Signup */
.signup {
    text-align: center;
    margin-top: 0px;
    font-size: 13px;
    color: #444;
}

.signup a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 5px;
}

/* ========== RESPONSIVE ========== */

/* Tablets */
@media (max-width: 1024px) {
    .page-container {
        gap: 30px;
    }

    .image-card {
        width: 480px;
        height: 480px;
    }

    .login-card {
        width: 420px;
        height: auto;
    }
}

/* Small tablets & large phones */
@media (max-width: 768px) {

    body {
        align-items: flex-start;
        padding-top: 40px;
        height: auto;
    }

    .page-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .image-card {
        width: 90%;
        height: 350px;
    }

    .login-card {
        width: 90%;
        height: auto;
        padding: 30px 25px;
    }

    .login-btn {
        margin-bottom: 40px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {

    body {
        padding: 0;
        background: #f3f3f3;
        align-items: stretch;
    }

    .page-container {
        width: 100%;
        padding: 20px;
    }

    /* 🔥 Hide image completely */
    .image-card {
        display: none;
    }

    .login-card {
        width: 100%;
        padding: 25px 20px;
        border-radius: 14px;
        box-shadow: none;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .login-card h3 {
        font-size: 16px;
    }

    .form-group input {
        font-size: 15px;
    }

    .login-btn {
        font-size: 16px;
        padding: 14px;
    }

    .forgot a,
    .signup {
        font-size: 12px;
    }
}
