* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f7fa;
    color: #08233d;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.auth-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: #07548d;
    border-radius: 45% 55% 60% 40%;
    left: -230px;
    top: -230px;
    opacity: .12;
}

.auth-page::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #58b947;
    border-radius: 55% 45% 35% 65%;
    right: -230px;
    bottom: -250px;
    opacity: .10;
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 47% 53%;
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(7, 42, 71, .15);
}

/* LEFT */
.login-left {
    padding: 60px 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.login-logo {
    width: 190px;
    max-height: 85px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 42px;
}

.login-left h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
    color: #082b4b;
    font-weight: 700;
}

.login-subtitle {
    margin: 10px 0 34px;
    color: #71808d;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #20394d;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    stroke: #8293a0;
}

.form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #d7e1e7;
    border-radius: 13px;
    background: #fbfdfe;
    padding: 0 46px;
    color: #122f45;
    font-size: 14px;
    outline: none;
    transition: .2s;
}

.form-control:focus {
    border-color: #159abb;
    background: white;
    box-shadow: 0 0 0 4px rgba(21, 154, 187, .10);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #81919e;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5e6f7c;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #087ca4;
}

.forgot {
    font-size: 13px;
    font-weight: 600;
    color: #087ca4;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #075693 0%, #079bb3 55%, #61b846 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 10px 26px rgba(9, 123, 158, .22);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(9, 123, 158, .28);
}

.register-text {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #778692;
}

.register-text a {
    color: #087ca4;
    font-weight: 700;
    text-decoration: none;
}

.error-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

/* RIGHT */
.login-right {
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(44, 197, 204, .30), transparent 25%),
        linear-gradient(145deg, #062946 0%, #064f79 52%, #087f91 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 65px;
}

/* Curved white divider */
.login-right::before {
    content: "";
    position: absolute;
    left: -115px;
    top: -10%;
    width: 180px;
    height: 120%;
    background: white;
    border-radius: 0 55% 55% 0;
    z-index: 1;
}

.login-right::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    right: -150px;
    bottom: -180px;
}

.right-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.right-content h2 {
    color: white;
    font-size: 31px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.right-content h2 span {
    color: #64c7ca;
}

.right-content p {
    color: rgba(255, 255, 255, .75);
    max-width: 390px;
    margin: 0 auto 35px;
    line-height: 1.7;
    font-size: 14px;
}

.illustration-box {
    width: 100%;
    max-width: 430px;
    height: 310px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.illustration-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Used if you don't add an illustration image */
.security-graphic {
    width: 280px;
    height: 185px;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .20);
}

.security-graphic::before {
    content: "✓";
    position: absolute;
    width: 85px;
    height: 85px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0875b0, #52b84c);
    color: white;
    font-size: 46px;
    font-weight: bold;
}

.dot-pattern {
    position: absolute;
    right: 35px;
    top: 35px;
    width: 130px;
    height: 100px;
    opacity: .28;
    background-image: radial-gradient(#72d2d2 2px, transparent 2px);
    background-size: 15px 15px;
}

@media(max-width: 900px) {
    .login-card {
        max-width: 520px;
        grid-template-columns: 1fr;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 50px 40px;
    }
}

@media(max-width: 500px) {
    .auth-page {
        padding: 15px;
    }

    .login-left {
        padding: 38px 25px;
    }

    .login-left h1 {
        font-size: 31px;
    }

    .login-logo {
        width: 160px;
    }
}