* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    font-size: 12.5px; /* Base size: 1rem = 16px */
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #5ec7d5, #6ecce0);
    overflow: hidden;
    position: relative;
}

/* Decorative circles */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

body::before {
    width: 25rem;       /* 400px */
    height: 25rem;      /* 400px */
    top: -6.25rem;      /* -100px */
    right: -6.25rem;    /* -100px */
}

body::after {
    width: 31.25rem;    /* 500px */
    height: 31.25rem;   /* 500px */
    bottom: -12.5rem;   /* -200px */
    left: -6.25rem;     /* -100px */
}

/* Main container */
.login-container {
    width: 56.25rem;        /* 900px */
    height: 31.25rem;       /* 500px */
    display: flex;
    border-radius: 1.25rem; /* 20px */
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.15); /* 40px */
}

/* Left panel */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #6cd2e0, #57bccf);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #1d4b5e;
    position: relative;
}

.left-panel img {
    padding: 0.625rem;       /* 10px */
    border-radius: 0.625rem; /* 10px */
    margin-bottom: 0.625rem; /* 10px */
    width: 10rem;            /* 160px */
    height: 11.25rem;        /* 180px */
}

.left-panel h2 {
    font-size: 2.5rem;        /* 40px */
    font-weight: 700;
    letter-spacing: 0.125rem; /* 2px */
}

/* Right panel */
.right-panel {
    flex: 1;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.right-panel h2 {
    font-size: 1.625rem;     /* 26px */
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.375rem; /* 6px */
}

.right-panel p {
    font-size: 0.8125rem;    /* 13px */
    color: #6c7a89;
    margin-bottom: 1.875rem; /* 30px */
    text-align: center;
}

form {
    width: 68%;
    max-width: 21.875rem; /* 350px */
    text-align: center;
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.875rem;        /* 14px */
    margin-bottom: 1.125rem;  /* 18px */
    border: none;
    outline: none;
    background: #f0f0f0;
    border-radius: 1.5625rem; /* 25px */
    font-size: 0.875rem;      /* 14px */
    color: #333;
}

button {
    width: 100%;
    padding: 0.875rem;        /* 14px */
    border: none;
    outline: none;
    background: linear-gradient(135deg, #67c8d6, #53b8ca);
    color: #fff;
    font-size: 0.9375rem;     /* 15px */
    font-weight: 600;
    border-radius: 1.5625rem; /* 25px */
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.9375rem rgba(83, 184, 202, 0.4); /* 6px 15px */
}

.right-panel form a {
    text-align: center;
    font-size: 0.75rem;          /* 12px */
    color: #2d3748;
    text-decoration: none;
    margin: 0.25rem 0 0.5rem 0;  /* 4px 0 8px 0 */
    transition: color 0.3s ease;
}

.right-panel form a:hover {
    color: #5eb3c5;
}

.right-panel label {
    margin-bottom: 0.3125rem; /* 5px */
}

button.login-btn {
    margin-top: 0.9375rem;  /* 15px */
    margin-bottom: 1.25rem; /* 20px */
}

.login-role {
    position: absolute;
    top: 2.5rem;             /* 40px */
    left: 50%;
    transform: translateX(-50%);

    font-size: 0.6875rem;        /* 11px */
    font-weight: 500;
    letter-spacing: 0.09375rem;  /* 1.5px */
    text-transform: uppercase;

    color: rgba(29, 75, 94, 0.75);
    border: 1px solid rgba(29, 75, 94, 0.35);
    background: rgba(255, 255, 255, 0.15);

    padding: 0.3125rem 0.75rem; /* 5px 12px */
    border-radius: 999px;
}

/* ============================================================
   RESPONSIVENESS
   Breakpoints:
     ≤ 960px  → shrink container, scale down logo & heading
     ≤ 768px  → stack panels vertically
     ≤ 480px  → full mobile, tighten all spacing
   ============================================================ */

/* --- Small desktops / large tablets (≤ 960px) --- */
@media (max-width: 60rem) { /* 960px */
    .login-container {
        width: 90%;
        height: auto;
        min-height: 31.25rem;
    }

    .left-panel img {
        width: 10rem;
        height: 10rem;
    }

    .left-panel h2 {
        font-size: 2rem;
    }
}

/* --- Tablets (≤ 768px) --- */
@media (max-width: 48rem) { /* 768px */
    body {
        overflow: auto;
        align-items: flex-start;
        padding: 2rem 0;
    }

    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
        border-radius: 1rem;
    }

    .left-panel {
        padding: 2.5rem 0; /* 40px */
    }

    .right-panel {
        padding: 2.5rem 0; /* 40px */
    }

    .left-panel img {
        width: 10rem;
        height: 10rem;
    }

    .left-panel h2 {
        font-size: 1.75rem;
        letter-spacing: 0.1rem;
    }

    .right-panel h2 {
        font-size: 1.375rem;
    }

    .right-panel p {
        margin-bottom: 1.25rem;
        padding: 0 1rem;
    }

    form {
        width: 80%;
    }

    .login-role {
        top: 1.25rem;
    }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 30rem) { /* 480px */
    body {
        padding: 1.25rem 0;
    }

    .login-container {
        width: 95%;
        border-radius: 0.75rem;
    }

    .left-panel {
        padding: 2rem 1rem;
    }

    .right-panel {
        padding: 2rem 1rem;
    }

    .left-panel img {
        width: 10rem;
        height: 10rem;
    }

    .left-panel h2 {
        font-size: 1.5rem;
    }

    .right-panel h2 {
        font-size: 1.25rem;
    }

    .right-panel p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    form {
        width: 90%;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        font-size: 1rem; /* prevent iOS auto-zoom (min 16px) */
        padding: 0.75rem 1rem;
        margin-bottom: 0.875rem;
    }

    button {
        font-size: 1rem; /* prevent iOS auto-zoom */
        padding: 0.75rem;
    }

    button.login-btn {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }

    .login-role {
        font-size: 0.625rem;
        letter-spacing: 0.0625rem;
        top: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* Scale down decorative circles on mobile */
    body::before {
        width: 12.5rem;
        height: 12.5rem;
        top: -3rem;
        right: -3rem;
    }

    body::after {
        width: 15rem;
        height: 15rem;
        bottom: -5rem;
        left: -3rem;
    }
}