/* Register2 Styles - Bootstrap 5.3 Version */

/* Background image settings */
body {
    background: url('../../webinstaller/login_includes/images/U_CLOUD_LIP_img-background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: TTCommonsRegular, sans-serif;
    font-size: 1em;
}

/* Bootstrap form customizations */
.form-label {
    font-family: TTCommonsRegular;
    font-weight: 500;
}

.form-control,
.form-select {
    font-family: TTCommonsRegular;
    border-radius: 0.375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #455cff;
    box-shadow: 0 0 0 0.25rem rgba(69, 92, 255, 0.25);
}

/* Bootstrap switch customization */
.form-check-input:checked {
    background-color: #455cff;
    border-color: #455cff;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,.25)'/%3e%3c/svg%3e");
    background-position: left center;
    transition: background-position 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 92, 255, 0.25);
    border-color: #455cff;
}

/* GDPR switches styling */
.gdpr-item {
    transition: background-color 0.2s ease;
}

.gdpr-item:hover {
    background-color: rgba(69, 92, 255, 0.05);
}

.gdpr-switch {
    width: 3em !important;
    height: 1.5em !important;
    cursor: pointer !important;
    margin-top: 0 !important;
}

.gdpr-switch:checked {
    background-color: #455cff !important;
    border-color: #455cff !important;
}

.label-gdpr-text {
    color: #333;
    font-family: TTCommonsRegular;
}

#terms-of-use label {
    min-width: 300px;
    font-family: TTCommonsRegular;
}

#terms-of-use label a {
    color: #455cff;
    font-size: 1.0em;
    text-decoration: none;
    font-family: TTCommonsRegular;
}

#terms-of-use label a:hover {
    color: #6f81ff;
    text-decoration: underline;
}

input[type="submit"] {
    width: 100%;
    border: none;
    color: #fff;
    cursor: pointer;
    background-color: #455cff;
    border-radius: 1.5rem;
    max-height: 4rem;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.6rem;
    margin-top: 10px;
    font-family: TTCommonsRegular;
}

.submit {
    border: none;
    color: white;
    cursor: pointer;
    background-color: #455cff;
    border-radius: 1.5rem;
    max-height: 4rem;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    font-family: TTCommonsRegular;
}

.inform {
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: TTCommonsRegular;
}

.success-container {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    text-align: center;
    padding: 3.1rem 2.5rem;
    border-radius: 1.4rem;
    background-color: #eff2f7;
    margin-top: 1.1rem;
    font-family: TTCommonsRegular;
}

.default-text {
    font-size: 1.0rem;
    line-height: 1.1rem;
    font-weight: 400;
    color: #0e173e;
    font-family: TTCommonsRegular;
}

input {
    font-family: TTCommonsRegular;
}

button {
    font-family: TTCommonsRegular;
}

option {
    font-family: TTCommonsRegular;
}

a {
    font-family: TTCommonsRegular;
    font-weight: normal;
}

h1, h2, h3, h4, h5 {
    font-family: TTCommonsRegular;
}

.banner-title {
    font-size: 3rem;
    line-height: 3.3rem;
    font-weight: 600;
    letter-spacing: -0.108rem;
    color: #6f81ff;
    font-family: TTCommonsDemibold;
}

.flag {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    margin-right: 10px;
    font-family: TTCommonsRegular;
}

#selected-origin {
    position: absolute;
    right: 45px;
    font-size: normal;
    opacity: .7;
    font-family: TTCommonsRegular;
}

/* Bootstrap modal customizations */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background-image: url(/tool/public_logos/bg-banner.png);
    background-size: cover;
    background-position: center;
    color: white;
    font-family: TTCommonsDemibold;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    font-family: TTCommonsRegular;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

.modal-footer .btn {
    font-family: TTCommonsDemibold;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-footer .btn-primary:hover {
    background-color: #3448cc !important;
    border-color: #3448cc !important;
    transform: translateY(-1px);
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Login panel styles */
#login-panel {
    width: 80%;
    padding: 20px;
    font-family: TTCommonsRegular;
}

#login-panel .form-label {
    font-family: TTCommonsDemibold;
    color: #333;
    margin-bottom: 0.5rem;
}

#login-panel .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#login-panel .form-control:focus {
    border-color: #455cff;
    box-shadow: 0 0 0 3px rgba(69, 92, 255, 0.15);
}

#login-panel .btn-primary {
    padding: 12px;
    border-radius: 8px;
    font-family: TTCommonsDemibold;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#login-panel .btn-primary:hover {
    background-color: #3448cc !important;
    border-color: #3448cc !important;
    transform: translateY(-1px);
}

#login-panel .login-link {
    color: #455cff;
    text-decoration: none;
    font-family: TTCommonsDemibold;
    transition: color 0.2s ease;
}

#login-panel .login-link:hover {
    color: #3448cc;
    text-decoration: underline;
}

#login-panel .login-divider {
    margin: 25px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Submit panel styles */
#submit-panel {
    margin-top: 20px;
    font-family: TTCommonsDemibold;
}

#terms-content {
    width: calc(100% - 20px);
    height: 100%;
    border: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: TTCommonsDemibold;
}

.mandatory {
    font-weight: bolder;
    color: red;
    font-family: TTCommonsDemibold;
}

.boxed {
    width: calc(100% - 5mm);
    border: #6f81ff solid 3px;
    font-family: TTCommonsDemibold;
}

iframe {
    width: 100vw;
    height: 100vh;
    border: none;
    padding: 0;
    overflow: auto;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main container */
.wrap-login100 {
    width: 750px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 10px auto;
}

/* Title form */
.login100-form-title {
    width: 100%;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px 15px 20px 15px;
    background: #eff2f7;
}

.gdpr-item,
.newsletter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.gdpr-item label,
.newsletter-item label {
    flex: 1;
    margin-right: 10px;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(69, 92, 255, 0.1);
    color: #455cff;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 92, 255, 0.25);
    border-color: #455cff;
}

/* Page navigation */
.page {
    display: none;
}

/* Back button styling */
.btn-back {
    background-color: transparent;
    border: none;
    color: #455cff;
    font-family: TTCommonsDemibold;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: #3448cc;
}

/* Terms page */
#terms-page {
    background: #fff;
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wrap-login100 {
        width: 95%;
        margin: 5px auto;
    }

    #login-panel {
        width: 100%;
        padding: 15px;
    }

    .success-container {
        width: 90%;
    }
}
