@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

html,
body {
    width: 100%;
    min-height: 100%;
}

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

.login-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url("/images/home/background7.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top-content {
    width: 700px;
    position: absolute;
    top: 3%;
    left: 50%;
    margin-left: -350px;
    text-align: center;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 13px;
    border: 1px solid #f8b5dc;
    border-radius: 20px;
    background: white;
    color: #f21b91;
    font-size: 12px;
    font-weight: 700;
}

.welcome-badge span {
    font-size: 13px;
}

.top-content h1 {
    margin-top: 6px;
    color: #087fd0;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
}

.top-content h1 span {
    display: block;
}

.top-content h1 strong {
    display: block;
    color: #f21b91;
}

.subtitle {
    margin-top: 9px;
    color: #4da9e9;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
}

.login-card {
    width: 620px;
    height: 430px;
    position: absolute;
    top: 190px;
    left: 50%;
    margin-left: -310px;
    padding: 12px 30px 16px;
    background: white;
    border: 1px solid #b9e1f3;
    border-radius: 18px;
    box-shadow: 0 8px 30px #d2edf8;
}

.clinic-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 1px;
}

.clinic-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.clinic-name {
    text-align: center;
    line-height: 1;
    margin-left: -10px;
}

.clinic-name strong {
    display: block;
    color: #087fd0;
    font-size: 17px;
    font-weight: 800;
}

.clinic-name b {
    display: block;
    color: #f21b91;
    font-size: 15px;
    font-weight: 800;
    margin-top: 2px;
}

.clinic-name span {
    display: block;
    color: #087fd0;
    font-size: 8px;
    font-weight: 600;
    margin-top: 3px;
}

.login-title-image {
    display: block;
    width: 190px;
    height: 60px;
    object-fit: contain;
    margin: 8px auto 1px;
}

.input-group {
    width: 100%;
    margin-top: 8px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #087fd0;
    font-size: 14px;
    font-weight: 600;
}

.input-group label img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.input-group input {
    width: 100%;
    height: 34px;
    padding: 0 15px;
    border: 1.5px solid #8ed1f4;
    border-radius: 11px;
    outline: none;
    background: white;
    color: #0875c9;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
}

.input-group input::placeholder {
    color: #72afe0;
}

.input-group input:focus {
    border-color: #087fd0;
}

.password-box {
    width: 100%;
    position: relative;
}

.password-box input {
    padding-right: 45px;
}

.password-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.forgot-password {
    display: block;
    width: fit-content;
    margin: 8px 0 12px auto;
    color: #087fd0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.login-submit {
    width: 100%;
    height: 36px;
    margin-top: 18px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(90deg, #087fd0, #f21b91);
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.forgot-account {
    display: block;
    margin-top: 13px;
    text-align: center;
    color: #087fd0;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
}

.signup-text {
    margin-top: 7px;
    text-align: center;
    color: #087fd0;
    font-size: 12.5px;
    font-weight: 500;
}

.signup-text a {
    color: #087fd0;
    font-weight: 700;
    text-decoration: underline;
}

.health-decoration {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 200px;
    height: auto;
}

.features {
    position: absolute;
    right: 3%;
    top: 32%;
    width: 280px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.feature img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.feature-text h3 {
    margin-bottom: 2px;
    color: #087fd0;
    font-size: 13px;
    font-weight: 700;
}

.feature-text h3::before {
    content: "♥";
    color: #f21b91;
    font-size: 11px;
    margin-right: 7px;
}

.feature-text p {
    color: #087fd0;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
}

.hassle-decoration {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: 220px;
    height: auto;
}

@media (max-width: 1200px) {

    .top-content {
        width: 600px;
        margin-left: -300px;
    }

    .top-content h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 14px;
    }

    .login-card {
        width: 490px;
        margin-left: -245px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .health-decoration {
        left: 8%;
        width: 190px;
    }

    .features {
        right: 4%;
        width: 260px;
    }

    .hassle-decoration {
        right: 2%;
        width: 190px;
    }
}

@media (max-width: 900px) {

    .top-content {
        width: 500px;
        margin-left: -250px;
    }

    .welcome-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .top-content h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 11px;
        margin-top: 10px;
    }

    .login-card {
        width: 420px;
        height: 500px;
        margin-left: -210px;
        top: 270px;
        padding: 14px 35px 20px;
    }

    .clinic-logo {
        width: 60px;
        height: 60px;
    }

    .login-title-image {
        width: 160px;
        height: 50px;
    }

    .health-decoration {
        left: 2%;
        top: 40%;
        width: 150px;
    }

    .features {
        right: 1%;
        top: 40%;
        width: 210px;
    }

    .feature {
        margin-bottom: 18px;
    }

    .feature img {
        width: 52px;
        height: 52px;
    }

    .feature-text h3 {
        font-size: 11px;
    }

    .feature-text p {
        font-size: 8px;
    }

    .hassle-decoration {
        width: 150px;
        bottom: 5%;
    }
}

 /* Clean Upper-Left Back Button Styling */
        .back-home-btn {
            position: absolute;
            top: 25px;
            left: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            background: #ffffff;
            padding: 8px 14px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            transition: all 0.2s ease;
            z-index: 10;
        }
        .back-home-btn:hover {
            color: #0077cd;
            border-color: #cbd5e1;
            background: #f8fafc;
        }
        @media (max-width: 768px) {
            .back-home-btn {
                top: 15px;
                left: 15px;
                padding: 6px 10px;
                font-size: 12px;
            }
        }

@media (max-width: 700px) {

    .login-page {
        min-height: 100vh;
        overflow-y: auto;
    }

    .top-content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-left: 0;
        padding: 30px 20px 0;
    }

    .top-content h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 10px;
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        height: auto;
        margin: 25px auto 40px;
    }

    .health-decoration,
    .features,
    .hassle-decoration {
        display: none;
    }
}

/* =========================================================
   LOGIN ERROR BANNER STYLING
   ========================================================= */
.login-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    animation: fadeInError 0.25s ease-in-out;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   Field validation UI (password match, email availability)
   ========================================================= */
.field-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    line-height: 1.2;
}
.field-status.ok { color: #15803d; }
.field-status.bad { color: #b91c1c; }
.field-status.checking { color: #64748b; }

.login-card input.input-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.login-card input.input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
