/* Enterprise Trade-In Registration - Common Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Main wrapper - similar to .kt-login */
.registration-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 65%);
    min-height: 100dvh;
    height: auto;
    width: 100%;
    overflow: visible;
}

/* Left Aside - Branded Section (similar to .kt-login__aside) */
.registration-aside {
    min-width: 0;
    padding: 2.25rem 2rem;
    background-image: url('https://alp.azureedge.net/alscdn/images/bg-3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
    height: 100%;
}
.registration-aside-title {
    color: var(--client-primary, #000) !important;
    font-size: 34px !important;
    font-weight: 700 !important;
}

.registration-aside-subtitle {
    color: var(--client-primary, #000) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-top:15px;
}

.registration-aside-header {
    /* margin-bottom: 2rem;*/
}

.registration-aside-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 620px;
    margin: 6.5rem 0 auto 0;
}

.registration-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.registration-logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.registration-logo-text {
    color: var(--client-primary, #000);
    font-size: 1.5rem;
    font-weight: 600;
}

/*.registration-aside-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

.registration-aside-subtitle {
    font-size: 0.98rem;
    font-weight: 400;
    color: #000000;
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.35;
}*/

/* Right Wrapper - Form Section (similar to .kt-login__wrapper) */
.registration-right {
    min-width: 0;
    padding: 0.75rem 2rem;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: visible;
    min-height: 100dvh;
    height: auto;
}

.registration-form-wrapper {
    width: 100%;
    max-width: 700px;
    padding: 0 1rem;
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0 auto;
}

.registration-topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Tenant/Assurant Logo at top center */
.registration-logo-center {
    text-align: center;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    box-shadow: none;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
}

.registration-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.registration-language-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(44, 119, 244, 0.78);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0 0.45rem;
}

    .registration-language-option:hover,
    .registration-language-option:focus {
        color: #2c77f4;
        text-decoration: none;
    }

    .registration-language-option.active {
        color: #8ab8ff;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .registration-language-option:not(:last-child)::after {
        content: "|";
        color: rgba(44, 119, 244, 0.6);
        position: absolute;
        right: -0.05rem;
        top: 50%;
        transform: translateY(-52%);
    }

.registration-logo-center img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
}

.registration-logo-center-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ccc;
}

/* Registration Header - for Index view */
.registration-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

    .registration-header h1 {
        font-size: 2rem;
        font-weight: 500;
        color: #67666e;
        margin-bottom: 0.75rem;
    }

    .registration-header p {
        font-size: 0.875rem;
        color: #999;
    }

/* Form Card Container - White background with padding and margins */
.form-card {
    background-color: #f3f4f7;
    border-radius: 8px;
    padding: 1.1rem 1.35rem;
    margin: 0.25rem 0;
    box-shadow: none;
    border: 1px solid #d9dde5;
    flex: 0 0 auto;
    min-height: 0;
}

    .form-card:hover {
        box-shadow: none;
        transition: none;
    }

/* Form Row - Two column grid layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 auto 0.5rem auto;
}

    .form-row.full {
        grid-template-columns: 1fr;
    }

/* Form Group - styling for labels and inputs */
.form-group {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

    .form-group label {
        font-size: 0.82rem;
        font-weight: 500;
        color: #67666e;
        margin-bottom: 0.1rem;
    }

    .form-group input,
    .form-group select {
        height: 34px;
        padding: 0.35rem 0.85rem;
        font-size: 0.8125rem;
        border: 1px solid #000;
        border-radius: 4px;
        background-color: #fff;
        font-family: inherit;
        transition: all 0.3s ease;
        margin-top: 0.1rem;
    }

        .form-group input::placeholder {
            color: #999;
        }

        .form-group input:focus,
        .form-group select:focus {
            background-color: #fff;
            border-color: #5352ed;
            box-shadow: 0 0 0 3px rgba(83, 82, 237, 0.1);
            outline: none;
            transition: all 0.3s ease;
        }

.field-required::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}
.checkbox-form-group .checkbox-group {
    margin-top: 0.1rem;
}

    .checkbox-group input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        cursor: pointer;
    }

    .checkbox-group label {
        margin: 0;
        font-weight: 400;
        cursor: pointer;
        font-size: 0.8125rem;
        color: #67666e;
    }

/* Submit button */
.submit-button {
    height: 38px;
    padding-left: 3rem;
    padding-right: 3rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #333333 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.submit-button-row {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.submit-button:hover:not(:disabled) {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error and Success Messages */
.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc3545;
}

.password-info {
    font-size: 0.7rem;
    color: #67666e;
    margin-top: 0.25rem;
    line-height: 1.35;
}

.password-match-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

    .password-match-message.error {
        color: #dc3545;
    }

    .password-match-message.success {
        color: #28a745;
    }

/* Form Alert */
.form-alert {
    display: none;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 0.813rem;
    line-height: 1.5;
    border-radius: 2px;
}

    .form-alert.show {
        display: block;
    }

/* Success Card - for RegistrationSuccess view */
.success-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 3rem 3.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    text-align: center;
}

    .success-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transition: box-shadow 0.3s ease;
    }

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
}

.success-message-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.success-action {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.success-button {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.success-button-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #333333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .success-button-primary:hover {
        opacity: 0.9;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        transform: translateY(-2px);
    }

/* Copyright Footer Section */
.registration-footer {
    text-align: center;
    padding: 0.3rem 0;
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
    flex-shrink: 0;
}

    .registration-footer p {
        margin: 0;
        line-height: 1.4;
    }

/* Responsive Design - Tablet (max-width: 1200px) */
@media (max-width: 1200px) {
    .registration-aside {
        min-width: 0;
        padding: 1.5rem 1.5rem;
    }

    .registration-right {
        min-width: 0;
        padding: 1rem;
    }

    .form-card {
        padding: 1.25rem 1.5rem;
       /* margin: 0.75rem 0;*/
    }

    .success-card {
        padding: 2.5rem 3rem;
        margin: 1.5rem 0;
    }

    .form-row {
        gap: 1.5rem;
        margin: 0 auto 0.75rem auto;
    }

    .registration-footer {
        padding: 0.6rem 0;
        font-size: 0.75rem;
    }
}

/* Responsive Design - Tablet/Mobile (max-width: 991px) */
@media (max-width: 991px) {
    .registration-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .registration-aside {
        order: 1;
        flex: 0 0 30%;
        min-width: 0;
        width: 100%;
        height: auto;
        padding: 0.75rem 0.75rem 1rem;
    }

    .registration-logo {
        margin-bottom: 0.35rem;
    }

    .registration-aside-content {
        justify-content: flex-start;
        margin: 0;
    }

    .registration-aside-title {
        margin-bottom: 1.5rem;
    }

    .registration-aside-subtitle {
        margin-top: 0;
    }

    .registration-right {
        order: 2;
        flex: 0 0 70%;
        min-width: 0;
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }

    .registration-form-wrapper {
        max-width: 100%;
        height: auto;
        padding: 0 0.5rem !important;
    }

    .registration-language-switcher {
        gap: 0;
    }

    .registration-language-option {
        font-size: 0.86rem;
        padding: 0 0.38rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 auto 0.65rem auto;
    }

    .checkbox-form-group > label {
        display: none;
    }

    .checkbox-form-group .checkbox-group {
        margin-top: 0;
    }

    .registration-header h1 {
        font-size: 1.5rem;
    }

    .submit-button-row {
        justify-content: stretch;
    }

    .submit-button {
        width: 100%;
    }

    .form-card {
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 6px;
    }

    .success-card {
        padding: 2rem 1.75rem;
        margin: 1rem 0;
        border-radius: 6px;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-message-text {
        font-size: 0.9375rem;
    }

    .registration-footer {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
}

/* Responsive Design - Mobile (max-width: 480px) */
@media (max-width: 480px) {
    body {
        overflow: auto;
    }

    .registration-aside {
        min-width: 0;
        padding: 0.6rem 0.6rem 0.85rem;
    }

    .registration-logo {
        margin-bottom: 0.25rem;
    }

    .registration-aside-content {
        justify-content: flex-start;
        margin: 0;
    }

    .registration-right {
        min-width: 0;
        padding: 0.5rem;
    }

    .registration-form-wrapper {
        width: 100%;
        padding: 0 !important;
    }

    .registration-language-switcher {
        gap: 0;
    }

    .registration-language-option {
        font-size: 0.78rem;
        padding: 0 0.3rem;
    }

    .registration-aside-title {
        font-size: 1.55rem;
        margin-bottom: 0.7rem;
    }

    .registration-aside-subtitle {
        margin-top: 0;
    }

    .registration-header h1 {
        font-size: 1.25rem;
    }

    .form-card {
        padding: 0.75rem;
        margin: 0.4rem 0;
        border-radius: 6px;
    }

    .form-group input,
    .form-group select {
        height: 34px;
        padding: 0.35rem 0.75rem;
        font-size: 0.8125rem;
    }

    .submit-button {
        height: 38px;
        font-size: 0.8125rem;
    }

    .form-row {
        gap: 1rem;
        margin: 0 auto 0.5rem auto;
    }

    .checkbox-form-group .checkbox-group {
        margin-top: 0;
    }

    .registration-footer {
        padding: 0.35rem 0;
        font-size: 0.7rem;
        margin-top: auto;
    }

    .success-card {
        padding: 1.5rem 1.25rem;
        margin: 0.75rem 0;
        border-radius: 6px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .success-title {
        font-size: 1.25rem;
    }

    .success-message-text {
        font-size: 0.875rem;
    }

    .success-button {
        width: 100%;
        padding: 0.6rem 1.5rem;
        font-size: 0.8125rem;
    }
}