.signup-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    background: #f8fafc;
    color: var(--black);
}

.signup-media {
    min-height: 100vh;
    background-image:
        linear-gradient(90deg, rgba(3, 11, 22, 0.58), rgba(3, 11, 22, 0.18)),
        url("/images/landingPages/home_hero_2.jpg");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.signup-logo-link img {
    height: 50px;
    object-fit: contain;
}

.signup-media-copy {
    max-width: 560px;
    color: #ffffff;
    padding-bottom: 3rem;
}

.signup-media-copy h1 {
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1rem;
}

.signup-media-copy p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.signup-panel {
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    padding: 2.5rem;
}

.signup-form-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.signup-form-header {
    text-align: center;
    margin-bottom: 1.4rem;
}

.signup-form-header img {
    height: 55px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.signup-form-header h2 {
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.signup-form-header p {
    color: #64748b;
    margin: 0;
}

.signup-error {
    font-weight: 600;
}

.signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.signup-grid-wide {
    grid-column: 1 / -1;
}

.signup-grid label,
.terms-check {
    font-weight: 700;
    color: #0b1728;
}

.signup-grid small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.signup-grid .form-control {
    min-height: 44px;
    border-radius: 6px;
}

.signup-grid .validationMessage {
    color: #dc2626;
    display: block;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.1rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.terms-check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.08rem;
    accent-color: #10b981;
}

.terms-check button {
    padding: 0;
    border: none;
    background: transparent;
    color: #047857;
    font-size: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.signup-submit {
    margin-top: 0.2rem;
}

.signup-submit-disabled,
.signup-submit:disabled {
    background: #94a3b8 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.62;
    transform: none !important;
}

.signup-footer {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
}

.signup-footer a {
    color: #047857;
    font-weight: 800;
}

.terms-modal-content {
    color: #0b1728;
}

.terms-modal-content .modal-header {
    align-items: flex-start;
}

.terms-modal-content .modal-header span {
    color: #64748b;
    display: block;
    margin-top: 0.2rem;
}

.terms-document {
    color: #1e293b;
    line-height: 1.7;
}

.terms-document h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.terms-document h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.45rem;
}

.terms-document p {
    margin-bottom: 0.85rem;
}

@media (max-width: 991px) {
    .signup-page {
        display: block;
    }

    .signup-media {
        min-height: 260px;
        padding: 1.5rem;
    }

    .signup-media-copy {
        padding-bottom: 0;
    }

    .signup-media-copy h1 {
        font-size: 2.2rem;
    }

    .signup-panel {
        min-height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .signup-media {
        min-height: 220px;
    }

    .signup-panel {
        padding: 1.2rem;
    }

    .signup-grid {
        grid-template-columns: 1fr;
    }

    .signup-form-header h2 {
        font-size: 1.35rem;
    }

    .terms-modal-content .modal-body {
        padding: 1rem;
    }
}
