body.sign-portal {
    min-height: 100vh;
    margin: 0;
    display: flex;
    overflow-x: hidden;
    font-family: "Open Sans", sans-serif;
    background: white;
}

.sign-rail {
    width: min(34vw, 420px);
    min-width: 280px;
    background: linear-gradient(165deg, var(--main-color, #192F4F) 0%, #0d1828 100%);
    color: rgba(255, 255, 255, 0.92);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 12px 0 40px rgba(25, 47, 79, 0.12);
}

.sign-rail .rail-mark {
    font-family: "Manrope", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
}

.sign-rail h1 {
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.35;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.sign-rail h1 strong {
    font-weight: 700;
    color: #fff;
}

.sign-rail p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    margin: 0;
    max-width: 22rem;
}

.sign-rail .rail-bottom p + p {
    margin-top: 1rem;
}

.sign-rail .rail-logo img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sign-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background-color: #EFF4FA;
}

.sign-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--border-color, #E8E3DC);
    border-radius: 4px;
    padding: 2.75rem 2.5rem;
    /* box-shadow: 0 24px 60px rgba(25, 47, 79, 0.08); */
}

.sign-card h3 {
    font-family: "Manrope", sans-serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--charcoal, #2C2C2C);
    margin: 0 0 0.35rem;
}

.sign-card h6 {
    font-size: 0.9rem;
    color: var(--text-secondary, #6B6B6B);
    font-weight: 400;
    margin: 0 0 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.45;
}

.form-control {
    width: 100%;
    padding: 16px 14px 16px 44px;
    border: 1px solid var(--border-color, #E8E3DC);
    border-radius: 2px;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
    background: #FDFCFA;
    color: var(--charcoal, #2C2C2C);
    min-height: 52px;
}

.form-control::placeholder {
    color: var(--text-light, #9A9A9A);
    font-weight: 300;
}

.form-control:hover,
.form-control:focus {
    outline: none;
    background: #fff;
    border-color: rgba(25, 47, 79, 0.35);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--charcoal, #2C2C2C) !important;
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

.forgot-password {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.forgot-password a {
    color: var(--main-color, #192F4F);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.forgot-password a:hover {
    border-bottom-color: var(--main-color, #192F4F);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--main-color, #192F4F);
    color: #fff;
    border: 1px solid var(--main-color, #192F4F);
    border-radius: 2px;
    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.2s;
}

.btn-submit:hover {
    box-shadow: 0 8px 28px rgba(25, 47, 79, 0.35);
}

.sign-legal {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, #E8E3DC);
    font-size: 0.82rem;
    text-align: center;
    color: var(--text-secondary, #6B6B6B);
}

.sign-legal a {
    color: var(--main-color, #192F4F);
    text-decoration: none;
}

.sign-legal a:hover {
    text-decoration: underline;
}

.sign-feedback {
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.sign-feedback--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.sign-feedback--error {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #991b1b;
}

.sign-feedback__title {
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.4rem;
    color: inherit;
}

.sign-feedback p {
    margin: 0;
    color: inherit;
    opacity: 0.95;
}

.sign-feedback p + p {
    margin-top: 0.65rem;
}

.sign-feedback .btn-submit {
    margin-top: 1.25rem;
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.25;
}

@media (max-width: 900px) {
    body.sign-portal {
        flex-direction: column;
    }

    .sign-rail {
        width: 100%;
        min-width: 0;
        padding: 2rem 1.5rem;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .sign-rail .rail-logo img {
        width: 120px;
    }

    .sign-rail::after {
        display: none;
    }

    .sign-rail .rail-bottom {
        display: none;
    }

    .sign-rail h1 {
        font-size: 1.35rem;
    }

    .sign-rail p {
        display: none;
    }
}