@font-face {
    font-family: 'login-funk';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'login-funk';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'login-funk';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 800;
}

:root {
    --login-ink: #111113;
    --login-muted: #6f6d75;
    --login-line: #e9e8eb;
    --login-soft: #f7f7f8;
    --login-purple: #7357ed;
    --login-purple-soft: #eeeafd;
}

.login-page,
.login-page * {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--login-ink);
    background: #f8f8f9;
    font-family: 'login-funk', Arial, sans-serif;
}

.login-page a {
    color: inherit;
    text-decoration: none;
}

.login-brand-panel {
    position: relative;
    width: calc(46% - 32px);
    height: calc(100vh - 40px);
    margin: 20px 0 0 20px;
    padding: 4px 0 0 4px;
}



.brand-kicker {
    max-width: 430px;
    margin-top: 108px;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.8;
}

.brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: #7c7883;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.brand-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--login-purple);
}

.brand-kicker strong {
    display: block;
    max-width: 520px;
    margin-bottom: 20px;
    color: var(--login-ink);
    font-size: clamp(38px, 4.2vw, 66px);
    font-weight: 800;
    letter-spacing: -.075em;
    line-height: .98;
}

.brand-points {
    max-width: 430px;
    margin-top: 72px;
    border-top: 1px solid #e4e3e8;
}

.brand-points div {
    display: flex;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid #e4e3e8;
    color: var(--login-muted);
    font-size: 12px;
    line-height: 1.5;
}

.brand-points b {
    flex: 0 0 22px;
    color: var(--login-purple);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
}

.brand-footer {
    position: absolute;
    bottom: 7px;
    color: #96939c;
    font-size: 11px;
}

#window_login,
#window_signup,
#first-team {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 54%;
    height: calc(100% - 70px);
    overflow: hidden;
    border: 1px solid #e4e3e8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(36, 33, 45, .1);
    z-index: 9;
}

#window_signup,
#first-team {
    right: -100%;
    opacity: 0;
}

#window_signup {
    overflow-y: auto;
    scrollbar-width: none;
}

#window_signup::-webkit-scrollbar {
    display: none;
}

#window_login::before,
#window_signup::before,
#first-team::before {
    position: absolute;
    top: -235px;
    right: -135px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--login-purple-soft) 0, rgba(238, 234, 253, 0) 68%);
    content: '';
    opacity: .65;
}

#window_login::after,
#window_signup::after,
#first-team::after {
    position: absolute;
    right: -95px;
    bottom: -165px;
    width: 390px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff1e7 0, rgba(255, 241, 231, 0) 68%);
    content: '';
    opacity: .65;
}

.auth-heading,
.auth-subheading,
.auth-content,
.auth-panel-form,
.auth-divider,
.auth-switch,
.signup-content,
.team-content {
    position: relative;
    z-index: 1;
}

.auth-heading {
    width: 100%;
    margin: 74px 0 0;
    padding: 0 24px;
    text-align: center;
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1.1;
}

.auth-subheading {
    width: 100%;
    margin: 12px 0 0;
    padding: 0 24px;
    color: var(--login-muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.auth-content,
.signup-content,
.team-content {
    width: min(470px, calc(100% - 64px));
    height: auto;
    margin: 38px auto 0;
}

.auth-panel-form,
.signup-content form,
.team-content form {
    width: 100%;
}

.field-label {
    display: block;
    margin: 18px 0 8px;
    color: #37343d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    cursor: text;
}

.field-label:first-child {
    margin-top: 0;
}

.login-page input[type='text'],
.login-page input[type='password'] {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--login-ink);
    font: inherit;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(17, 17, 19, .035);
    transition: border-color .2s, box-shadow .2s;
}

.login-page input[type='text']:focus,
.login-page input[type='password']:focus {
    border-color: #b8aafa;
    box-shadow: 0 0 0 3px rgba(115, 87, 237, .1);
}

.login-page input[type='text']:hover,
.login-page input[type='password']:hover {
    border-color: #d4d1dc;
}

.login-page input::placeholder {
    color: #aaa7af;
    opacity: 1;
}

.forgot-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--login-muted) !important;
    font-size: 12px;
}

.forgot-link:hover,
.auth-switch-action:hover,
.custom-checkbox a:hover {
    color: var(--login-purple) !important;
}

#log-in,
#teamCrJn {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 30px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #151518;
    color: #fff;
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, transform .2s, box-shadow .2s;
}

#log-in:hover,
#teamCrJn:hover {
    background: #302d38;
    box-shadow: 0 8px 20px rgba(21, 21, 24, .15);
    transform: translateY(-1px);
}

#log-in:active,
#teamCrJn:active {
    transform: translateY(0);
}

.auth-divider {
    position: relative;
    width: 100%;
    margin: 34px 0 0;
    border-bottom: 1px solid var(--login-line);
}

.auth-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0 16px;
    background: #fff;
    color: #96939c;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    transform: translate(-50%, -50%);
}

.auth-switch {
    width: 100%;
    margin: 24px 0 0;
    color: var(--login-muted);
    text-align: center;
    font-size: 12px;
}



.auth-switch-action {
    color: var(--login-purple) !important;
    font-weight: 500;
    cursor: pointer;
}

.signup-heading,
.team-heading {
    margin-top: 66px;
}

.signup-content,
.team-content {
    margin-top: 42px;
    margin-bottom: 28px;
}

.name-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.name-fields .field-label {
    margin-top: 0;
}

.signup-content .field-label,
.team-content .field-label {
    margin-top: 16px;
}

.signup-content .field-label:first-child,
.team-content .field-label:first-child {
    margin-top: 0;
}

.password-note {
    margin: 11px 0 0;
    color: #96939c;
    font-size: 11px;
    line-height: 1.5;
}

.password-note + .password-note {
    margin-top: 2px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 22px 0 0;
    padding: 12px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    background: var(--login-soft);
    color: var(--login-muted);
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type='checkbox'] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 1px 0 0;
    accent-color: var(--login-purple);
}

.custom-checkbox a {
    color: var(--login-purple);
}

.submit-wrapper {
    position: relative;
    margin-top: 30px;
}

.submit-wrapper #teamCrJn {
    margin-top: 0;
}

.spinner {
    display: none;
    position: absolute;
    top: 18px;
    left: 73px;
    width: 14px;
    height: 14px;
    border: 2px solid #999;
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .6s linear infinite;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .login-brand-panel {
        width: calc(42% - 24px);
    }

    #window_login,
    #window_signup,
    #first-team {
        width: 58%;
    }

    .auth-content,
    .signup-content,
    .team-content {
        width: min(470px, calc(100% - 48px));
    }
}

@media (max-width: 700px) {
    .login-page {
        overflow-y: auto;
    }

    .login-brand-panel {
        width: auto;
        height: 100px;
        margin: 20px 20px 0;
        padding-left: 0;
    }

    .brand-kicker,
    .brand-points,
    .brand-footer {
        display: none;
    }

    #window_login,
    #window_signup,
    #first-team {
        top: 120px;
        right: 20px;
        width: calc(100% - 40px);
        min-height: calc(100vh - 140px);
        height: auto;
    }

    #window_signup,
    #first-team {
        right: -100%;
    }

    .auth-heading,
    .signup-heading,
    .team-heading {
        margin-top: 48px;
    }

    .auth-content,
    .signup-content,
    .team-content {
        width: calc(100% - 40px);
        margin-top: 30px;
    }
}

@media (max-width: 430px) {
    .name-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .name-fields .field-label {
        margin-top: 16px;
    }

    .name-fields .field:first-child .field-label {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #log-in,
    #teamCrJn,
    .login-page input[type='text'],
    .login-page input[type='password'] {
        transition: none;
    }
}
