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

body {
    font-family: "Roboto", sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
}

.page-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Curve */
.background-curve {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: #f8f9fa; /* Very light gray for the curve area */
    clip-path: ellipse(70% 120% at 90% 50%); /* Start simple, adjust */
    z-index: -1;
    /* Attempting to match the subtle shadow/gradient look */
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.05); /* This won't work with clip-path directly, using pseudo element or filter drop-shadow is better if needed */
}
/* Better curve approximation */
.page-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f2f5 100%);
    border-top-left-radius: 50% 100%;
    border-bottom-left-radius: 50% 100%;
    transform: scaleX(1.5) translateX(30%);
    z-index: -1;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.02);
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Logo Styles to match "miHCM" */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.mi-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -2px;
    position: relative;
}

.mi-logo .m {
    color: #2c3e88; /* Dark Blue */
    font-family:
        "Arial Rounded MT Bold", "Roboto", sans-serif; /* Try to match rounded look */
}

.mi-logo .i {
    color: #f7a01d; /* Orange */
    font-family: "Arial", sans-serif;
}

.mi-logo .hcm {
    font-size: 14px;
    color: #f7a01d;
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: 0;
    text-transform: uppercase;
    position: absolute;
    top: 5px;
    right: -25px;
    transform: rotate(90deg);
}
/* Re-attempting logo with more CSS hacks to match image better if needed,
   but simplistic approach: Use image if possible. Since forbidden, use text.
   The 'mi' logo looks like a specific brand logo.
*/

.logo-subtitle {
    margin-top: 15px;
    color: #9aa0ac;
    font-size: 16px;
    font-weight: 400;
}

/* Login Box */
.login-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid #a3b8e6; /* Light blue border */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.login-error-banner {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #f0f0f0;
    background-color: #fcfcfc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    color: #555;
    transition: all 0.3s;
}

.input-group input:focus {
    background-color: #fff;
    border-color: #d0d0d0;
}

.input-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db; /* Light grey icon */
    font-size: 14px;
}

.sign-in-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(
        to bottom,
        #5d81ce,
        #4a6ec5
    ); /* Gradient blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(74, 110, 197, 0.2);
    margin-top: 10px;
}

.sign-in-btn:hover {
    background: linear-gradient(to bottom, #4f73c0, #3d60b3);
}

.options {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    color: #9aa0ac;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px; /* Space for custom checkmark */
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%; /* Rounded checkbox */
}

/* Checked state */
.checkbox-container input:checked ~ .checkmark {
    border-color: #8da4d8;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Tick mark */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #8da4d8; /* Blue tick */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.forgot-password a {
    color: #b0b5c1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* Identity Providers */
.idp-section {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

.idp-section p {
    color: #9aa0ac;
    font-size: 14px;
    margin-bottom: 20px;
}

.idp-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.idp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid #8ba3e6; /* Blue border */
    border-radius: 5px;
    background: transparent;
    text-decoration: none;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 160px;
}

.idp-btn img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.idp-btn i {
    font-size: 16px;
    margin-right: 8px;
}

.idp-btn.microsoft {
    color: #798099;
    font-weight: 600;
}
.idp-btn.google {
    color: #798099;
}
.idp-btn.apple {
    min-width: 160px;
    color: #555;
    border-color: #4a5568; /* Darker border for Apple */
    color: #4a5568;
}

.idp-apple-row {
    display: flex;
    justify-content: center;
}
