/* Sign-in page. */

.login-wrap {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #ffffff;
    color: #1a1626;
}

/* ---- Form column ---------------------------------------------------------- */
.login-form-col {
    flex: 0 0 47%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    min-height: 100vh;
}

.login-form-inner {
    width: 100%;
    max-width: 404px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 52px;
}

.login-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(150deg, #a05aff 0%, #6d28d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(160, 90, 255, 0.35);
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.login-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1626;
}

.login-brand-by {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a9a3b8;
}

.login-title {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 9px;
    color: #1a1626;
}

.login-subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: #6b6478;
    margin: 0 0 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #3b3547;
}

.login-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e6e2ee;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1626;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input::placeholder {
    color: #a9a3b8;
}

.login-input:focus {
    border-color: #a05aff;
    box-shadow: 0 0 0 4px rgba(160, 90, 255, 0.13);
}

.login-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-pw-input {
    padding-right: 62px;
}

.login-pw-toggle {
    position: absolute;
    right: 8px;
    padding: 6px 9px;
    background: transparent;
    border: none;
    color: #8236e8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
}

.login-pw-toggle:hover {
    background: #f4eefe;
}

.login-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 17px;
    height: 17px;
    accent-color: #a05aff;
    cursor: pointer;
    margin: 0;
}

.login-remember span {
    font-size: 13.5px;
    color: #4b4557;
    font-weight: 500;
}

.login-forgot {
    font-size: 13.5px;
    font-weight: 600;
}

.login-error {
    font-size: 13px;
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f7c9c3;
    padding: 9px 13px;
    border-radius: 10px;
    margin-top: -2px;
}

.login-submit {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: #a05aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(160, 90, 255, 0.5);
    transition: background 0.15s;
}

.login-submit:hover {
    background: #8f43f5;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: #eceaf1;
}

.login-divider-text {
    font-size: 12px;
    color: #a9a3b8;
    font-weight: 500;
}

.login-support {
    font-size: 13.5px;
    line-height: 1.5;
    color: #8a8397;
    text-align: center;
    margin: 0;
}

.login-support a {
    font-weight: 600;
}

.login-copyright {
    font-size: 12px;
    color: #b6b0c2;
    text-align: center;
    margin: 40px 0 0;
}

/* ---- Marketing / enrollment panel ----------------------------------------- */
.login-panel {
    flex: 1 1 53%;
    display: flex;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #a05aff 0%, #6d28d9 100%);
    color: #fff;
    padding: 64px;
    align-items: center;
    justify-content: center;
}

.login-panel-glow-a {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
    animation: mob-glow 7s ease-in-out infinite;
}

.login-panel-glow-b {
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.5) 0%, transparent 70%);
}

.login-panel-inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 26px;
}

.login-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.login-panel-title {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.login-panel-text {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 40px;
    max-width: 400px;
}

.login-device-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-device {
    width: 214px;
    height: 400px;
    border-radius: 34px;
    background: linear-gradient(160deg, #241033, #3a1656);
    padding: 11px;
    box-shadow: 0 40px 80px -20px rgba(20, 4, 40, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: mob-float 6s ease-in-out infinite;
}

.login-device-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 12px, rgba(255, 255, 255, 0.02) 12px 24px);
    background-color: #2c123f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 22px;
    background: #241033;
    border-radius: 0 0 14px 14px;
}

.login-device-label {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 0 20px;
}

.login-features {
    display: flex;
    gap: 22px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.login-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #fff;
}

/* ---- Animations ----------------------------------------------------------- */
@keyframes mob-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes mob-glow {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.9;
    }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 899px) {
    .login-wrap {
        flex-direction: column;
    }

    .login-form-col {
        flex: 1 1 auto;
        padding: 48px 24px;
        min-height: auto;
    }

    .login-panel {
        display: none;
    }
}
