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

html,
body {
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(5, 22, 60, 0.06) 0%, rgba(5, 22, 60, 0.1) 46%, rgba(5, 22, 60, 0.32) 100%),
        var(--login-bg) center center / cover no-repeat fixed;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
    pointer-events: none;
}

::selection {
    background: #0b3476;
    color: #fff;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding: 44px clamp(22px, 6vw, 96px);
    overflow-x: hidden;
}

.login-copy {
    min-width: 0;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.site-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.login-icon {
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
}

.login-icon-globe {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #ef2029;
    background: rgba(255,255,255,0.08);
}

.login-icon-globe::before,
.login-icon-globe::after {
    content: "";
    position: absolute;
    border: 2px solid #ef2029;
    border-left: 0;
    border-right: 0;
}

.login-icon-globe::before {
    inset: 8px 5px;
    border-radius: 999px;
}

.login-icon-globe::after {
    top: 6px;
    bottom: 6px;
    left: 15px;
    width: 2px;
    border-top: 0;
    border-bottom: 0;
    border-left: 2px solid #ef2029;
}

.wrapper {
    width: 100%;
    min-width: 0;
    max-width: 500px;
    justify-self: end;
    overflow: hidden;
    padding: 38px 42px 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(6, 18, 45, 0.32);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.72);
}

.login-card-heading {
    text-align: center;
    color: #082965;
}

.login-icon-user {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border: 3px solid #082965;
    border-radius: 999px;
}

.login-icon-user::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 3px solid #082965;
    border-radius: 999px;
    transform: translateX(-50%);
}

.login-icon-user::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 10px;
    height: 17px;
    border: 3px solid #082965;
    border-radius: 18px 18px 6px 6px;
    border-bottom: 0;
}

.login-card-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-card-heading p {
    margin: 8px 0 0;
    color: #5d6470;
    font-size: 17px;
    font-weight: 500;
}

.slide-controls {
    position: relative;
    display: flex;
    height: 52px;
    width: 100%;
    overflow: hidden;
    margin: 32px 0 26px;
    border: 1px solid rgba(13, 37, 78, 0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.86);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.slide-controls .slide {
    height: 100%;
    width: 50%;
    color: #34415a;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    line-height: 52px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.25s ease;
}

.slide-controls .slider-tab {
    position: absolute;
    height: 100%;
    width: 50%;
    left: 0;
    z-index: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #082f79, #0a78dd);
    transition: left 0.25s ease;
}

input[type="radio"] {
    display: none;
}

#signup:checked ~ .slider-tab {
    left: 50%;
}

#signup:checked ~ label.signup,
#login:checked ~ label.login {
    color: #fff;
}

.form-container {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.form-inner {
    display: flex;
    width: 200%;
    max-width: 200%;
    transition: transform 0.35s ease;
}

.form-inner form {
    width: 50%;
    flex: 0 0 50%;
}

.form {
    width: 100%;
    min-width: 0;
}

.form .field {
    position: relative;
    height: 58px;
    width: 100%;
    margin-top: 20px;
}

.form .field .login-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    z-index: 1;
}

.login-icon-small-user {
    width: 21px;
    height: 21px;
    border: 2px solid #737b8d;
    border-radius: 999px;
}

.login-icon-small-user::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 5px;
    height: 5px;
    border: 2px solid #737b8d;
    border-radius: 999px;
    transform: translateX(-50%);
}

.login-icon-small-user::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    height: 6px;
    border: 2px solid #737b8d;
    border-radius: 8px 8px 2px 2px;
    border-bottom: 0;
}

.login-icon-lock {
    width: 20px;
    height: 17px;
    border: 2px solid #737b8d;
    border-radius: 4px;
    margin-top: 4px;
}

.login-icon-lock::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -11px;
    width: 9px;
    height: 10px;
    border: 2px solid #737b8d;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.form .field input {
    height: 100%;
    width: 100%;
    outline: none;
    padding: 0 18px 0 56px;
    border-radius: 11px;
    border: 1px solid rgba(14, 28, 55, 0.14);
    background: rgba(255,255,255,0.9);
    color: #0c1730;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form .field input:focus {
    border-color: #0b3476;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 47, 121, 0.12);
}

.form .field input::placeholder {
    color: #8f96a3;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 22px 0 2px;
    color: #5d6470;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.remember-row input {
    width: 21px;
    height: 21px;
    accent-color: #082f79;
}

.field.btn {
    margin-top: 32px;
}

.btn-layer {
    height: 100%;
    width: 100%;
    border: 0;
    text-decoration: none;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(180deg, #ef2029, #c9141b);
    border-radius: 11px;
    box-shadow: 0 12px 20px rgba(202, 20, 27, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-layer:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 24px rgba(202, 20, 27, 0.3);
}

.btn-layer:active {
    transform: translateY(1px);
}

@media (max-width: 1180px) {
    .login-shell {
        grid-template-columns: 1fr;
        padding: 34px 22px;
    }

    .login-copy {
        min-height: 78px;
        align-items: flex-start;
    }

    .wrapper {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    body.login-page {
        background-position: center;
    }

    .login-shell {
        padding: 22px 14px;
    }

    .wrapper {
        max-width: 100%;
        padding: 30px 22px 28px;
        border-radius: 16px;
    }

    .login-card-heading h1 {
        font-size: 26px;
    }

    .login-card-heading p {
        font-size: 15px;
    }
}
