* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    grid-template-columns: 58.6% 41.4%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-panel {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(87, 82, 170, 0.62) 0%, rgba(255, 255, 255, 0.05) 58%),
        url("https://ssl.staticsdemocn.com/images/blue-purple-reg.jpg") center / cover no-repeat;
}

.hero-copy {
    position: absolute;
    left: 43px;
    bottom: 31px;
    color: #fff;
}

.hero-copy h1 {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.86;
}

.account-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

.top-links {
    position: absolute;
    top: 58px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #1f2937;
    font-size: 14px;
}

.top-links span {
    width: 1px;
    height: 18px;
    background: #c9ced6;
}




.brand-mark::before,
.brand-mark::after {
    position: absolute;
    left: 12px;
    top: -2px;
    width: 14px;
    height: 37px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff7b32 0%, #f04438 100%);
    content: "";
}

.brand-mark::before {
    transform: rotate(45deg);
}

.brand-mark::after {
    transform: rotate(-45deg);
}

.login-form {
    width: 400px;
    margin-top: 309px;
}

.form-tabs {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-bottom: 24px;
}

.form-tabs button {
    position: relative;
    padding: 0 0 6px;
    border: 0;
    color: #111827;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

.form-tabs .active {
    color: #6c55f5;
    font-weight: 600;
}

.form-tabs .active::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #6c55f5;
    content: "";
}

.form-intro {
    margin: 0 0 18px;
    color: #303846;
    font-size: 14px;
}

.login-error {
    margin: -8px 0 14px;
    color: #e11d48;
    font-size: 13px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    display: block;
    width: 100%;
    height: 40px;
    margin-bottom: 23px;
    padding: 0 12px;
    border: 1px solid #d7dde8;
    border-radius: 4px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-form input[type="password"] {
    margin-bottom: 17px;
    background: #eaf1ff;
}

.login-form input:focus {
    border-color: #7b61ff;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #111827;
    font-size: 14px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #7361ee;
}

.form-options a {
    color: #6c55f5;
    font-size: 13px;
}

.submit-btn {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #765ded;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.submit-btn:hover {
    background: #6751dc;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 260px;
    }

    .account-panel {
        min-height: auto;
        padding: 88px 24px 48px;
    }

    .top-links {
        top: 24px;
        right: 24px;
    }

    .brand {
        top: 24px;
        left: 24px;
        transform: none;
    }

    .login-form {
        width: min(100%, 400px);
        margin-top: 40px;
    }
}

@media (max-width: 560px) {
    .hero-panel {
        min-height: 220px;
    }

    .hero-copy {
        left: 24px;
        bottom: 24px;
    }

    .hero-copy h1 {
        max-width: 320px;
        font-size: 24px;
    }

    .top-links {
        display: none;
    }

    .brand {
        font-size: 22px;
    }
}
