@import url("./styles/roots.css");
@import url("./styles/fonts.css");

* {
    box-sizing: border-box;
}

body {
    width: 100vw;
    margin: 0px;

    font-family: "SBSansDisplay-Regular";
    font-size: 12px;
    line-height: 1.5;

    color: var(--color);
    background-color: var(--dark-background-color);
}

.container {
    position: relative;
    width: 100%;
    margin-top: 177px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.section_form {
    padding: 20px 40px 30px 40px;
    border: var(--border);
    border-radius: 27px;
    background-color: var(--dark-background-color);
    z-index: 1;
    width: 500px;
}

.form-language {
    position: relative;
    text-align: right;
}

.form-language__button {
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color);
    background-color: #10181F;
    border: none;
}

.form-language__list {
    display: none;
    position: absolute;
    right: 0;
    z-index: 100;
    min-width: 100px;
    padding: 0;
    margin: 0;
    box-shadow: 0 0.25rem 0.5rem 0rem rgba(3,3,3,0.12),0 0 0.25rem 0 rgba(3,3,3,0.06);
    background-color: #10181F;
}

.form-language__list li {
    border: 1px solid #10181F;
    list-style: none;
    padding: 7px 16px;
}

.form-language__list li:hover {
    border: 1px solid white;
    border-radius: var(--border-radius);
}

.form-language__list li a {
    color: white;
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none;
}

.logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.logo img {
    height: 40px;
    display: flex;
    align-items: center;
}

.corporate_email {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.form_element {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 13px;
}

.form_element label {
    color: hsl(206, 12%, 53%);
    margin-bottom: 2px;
}

.form_element input {
    padding: 10px;
    border: var(--border);
    border-radius: var(--border-radius);
    color: #FFFFFF;
    background-color: #10181F;
}

.form_element input:hover {
    border-bottom-width: 1px;
    border-bottom-color: #06c;
}

.form_button_element {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password_wrapper {
    background-color: white;
    display: flex;
    padding-bottom: 1px;
}

#password_input {
    flex-grow: 1;
}

.password_button {
    cursor: pointer;
    border: 1px solid;
    border-radius: 0;
    border-color: white;
    border-bottom-color: #8a8d90;
    padding: 0.375rem 1rem;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
}

.fa.fa-eye::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    content: "";
    border: 1px solid;
    border-radius: 0;
    border-color: white;
    border-bottom-color: #8a8d90;
}

.password_button:hover .fa::after {
    border-bottom-width: 2px;
    border-bottom-color: #06c;
}


.invalid .form_element input {
    border-bottom-width: 2px;
    border-bottom-color: var(--invalid-color);
}

.invalid_feedback {
    /* display: none; */
    font-size: 12px;
    line-height: 1.5;
    margin: 0px;
    color: var(--invalid-color);
    text-wrap: wrap;
    white-space: wrap;
}

.invalid .invalid_feedback {
    display: block;
}

.form-settings {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 13px;
}

.form-settings a {
    color: var(--color-link);
    text-decoration: none;
}

.form-settings a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.form-settings__help {
    margin-bottom: 3px;
}

.form-settings__info {
    display: none;
    padding: 20px 40px 10px 40px;
    color: #FFFFFF;
    background: #10181F;
    border: 1px solid #788894;
    border-radius: 27px;
    line-height: 1.66;
}

.form_submit_btn {
    margin-top: 43px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    height: 40px;
    width: 100%;
    background-color: var(--color-link);
    cursor: pointer;
    color: white;
}

.form-email {
    position: relative;
    color: rgb(185, 185, 185);
    font-size: 20px;
    text-align: center;
    padding: 10px 0 20px 0;
}

.email-display {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 60px); /* Оставляем место для иконки и списка */
}

.form-restart {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.form-restart .fa {
    font-size: 14px;
    margin-left: 5px;
}

.form-restart-icon {
    cursor: pointer;
    color: rgb(185, 185, 185);
    transition: color 0.2s ease;
}

.form-restart-icon:hover {
    color: var(--color-link-hover);
}

.form-restart__list {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    padding: 10px 25px;
    margin: 0;
    width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    font-size: 12px;
}

.form-restart__list::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(0, 0, 0, 0.8);
}

.form-restart:hover .form-restart__list {
    display: block;
}

.container-navio {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: white;
}

.container-navio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/navio-background.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: blur(2px);
    z-index: 1;
}

.content {
    padding: 2px 10px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    max-width: 80%;
    z-index: 2;
}

.content span {
    color: rgb(255, 255, 255);
    font-size: 20px;
}