* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    image-rendering: auto;
}

img[src$=".png"],
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".webp"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'SantaMaria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.top-block {
    width: 350px;
    height: 50px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(32, 32, 32, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 50px;
    border-radius: 100px;
    margin: 0;
}

.top-block button,
.top-block a.btn-home {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.top-block button img {
    display: block;
}

.btn-home img,
.btn-menu img {
    width: 20px;
    height: 20px;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: opacity 0.2s ease;
}

.nav-news,
.nav-products {
    font-size: 16px;
    color: #3E3E3E;
    margin: 0;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    text-decoration: none;
}

.nav-news:hover,
.nav-products:hover {
    color: white;
}

.btn-menu img {
    width: 31px;
    height: 31px;
}

.btn-home .icon-hover,
.btn-menu .icon-hover {
    display: none;
}

.btn-home .icon-normal,
.btn-menu .icon-normal {
    display: block;
}

.btn-home:hover .icon-normal,
.btn-menu:hover .icon-normal {
    display: none;
}

.btn-home:hover .icon-hover,
.btn-menu:hover .icon-hover {
    display: block;
}

.menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-dropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 350px;
    height: 194px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    background: rgba(32, 32, 32, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    isolation: isolate;
}

.menu-dropdown.menu-dropdown-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-dropdown-link {
    display: block;
    padding: 12px 16px;
    font-size: 32px;
    font-weight: 500;
    color: #373737;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown-link:hover {
    color: black;
}

.menu-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

/* ========== MAIN ========== */
.account-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 60px;
    margin: 0 auto;
}

.vati-avatar-wrapper {
    margin: 0 0 20px 0;
}

.vati-avatar {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: 100%;
    display: block;
}

.account-title {
    font-size: 64px;
    font-weight: 600;
    color: #282828;
    margin: 0 0 50px 0;
    text-align: center;
    max-width: 100%;
}

.email-title {
    font-size: 64px;
    font-weight: 600;
    color: #282828;
    margin: 0 0 50px 0;
    text-align: center;
    max-width: 100%;
}

.account-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    font-size: 36px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #282828;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #F73131;
}

.form-label {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 36px;
    color: black;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -24px;
    font-size: 18px;
    color: black;
}

.send-button {
    width: 160px;
    height: 50px;
    margin: 20px auto 0;
    font-size: 24px;
    color: white;
    background: #F73131;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: normal;
}

.send-button:hover {
    background: #FF4747;
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

.form-error {
    display: block;
    font-size: 14px;
    color: #F73131;
    margin-top: 8px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-error.visible {
    opacity: 1;
    visibility: visible;
}

.form-input.error {
    border-bottom-color: #F73131;
}

.form-input.error + .form-label {
    color: #F73131;
}

.hidden {
    display: none;
}

.form-group .email-subtitle,
.email-subtitle {
    display: block;
    width: 100%;
    font-size: 48px;
    font-weight: normal;
    color: #282828;
    margin: 0 0 50px 0;
    text-align: center;
    max-width: 100%;
}

.code-inputs-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.code-digit {
    width: 52px;
    height: 60px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #282828;
    border-radius: 12px;
    background: transparent;
    color: #000;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: border-color 0.3s ease;
}

.code-digit:focus {
    outline: none;
    border-color: #F73131;
}

.code-digit::placeholder {
    color: transparent;
}

.title-create-account,
.title-reset-password,
.title-code-arrive,
.title-different-email {
    font-size: 20px;
    color: #005BD8;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 200;
}

.link-to-create-account,
.link-to-reset-password,
.link-to-code-arrive,
.link-to-different-email {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    margin: 20px auto 0 auto;
}

.link-to-different-email {
    margin: 10px auto 0 auto;
}

.link-to-create-account:hover .title-create-account,
.link-to-create-account:hover .title-reset-password,
.link-to-code-arrive:hover .title-code-arrive,
.link-to-different-email:hover .title-different-email {
    color: #0040A0;
}

a.link-to-create-account {
    display: inline-block;
}

/* ========== FOOTER ========== */
.footer-basement {
    background: #ffffff;
    padding: 40px 20px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 10px;
}

.basement {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.separator {
    width: 100%;
    max-width: 90%;
    height: 1px;
    background-color: #d2d2d7;
}

.basement-footer {
    width: 100%;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.title-copyright,
.title-country {
    font-size: 12px;
    color: #86868b;
    font-weight: 300;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.basement-footer a {
    color: #515154;
    text-decoration: none;
    transition: color 0.2s ease;
}

.basement-footer a:hover {
    color: #0071e3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========== MEDIA: 768px ========== */
@media (max-width: 768px) {
    .top-block {
        width: 100%;
        max-width: 350px;
        height: 50px;
        gap: 50px;
        padding: 0 15px;
    }
    .nav-news,
    .nav-products {
        font-size: 14px;
    }
    .separator {
        width: 90%;
    }
    .basement-footer {
        width: 90%;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========== MEDIA: 480px ========== */
@media (max-width: 480px) {
    .top-block {
        width: 100%;
        max-width: 350px;
        height: 50px;
        gap: 50px;
        padding: 0 10px;
    }
    .nav-news,
    .nav-products {
        font-size: 14px;
    }
    .account-section {
        padding: 120px 15px 100px;
        max-width: 90%;
    }
    .account-title,
    .email-title {
        font-size: 66px;
        margin-bottom: 40px;
    }
    .account-form {
        gap: 30px;
    }
    .form-input {
        font-size: 24px;
        padding: 6px 0;
    }
    .form-label {
        font-size: 24px;
    }
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: -22px;
        font-size: 16px;
    }
    .send-button {
        width: 140px;
        height: 45px;
        font-size: 20px;
        margin-top: 15px;
    }
    .basement {
        width: 100%;
        margin-bottom: 0;
    }
    .separator {
        width: 400px;
        height: 1px;
        background-color: #282828;
    }
    .basement-footer {
        width: 400px;
        flex-direction: column;
    }
    .title-copyright,
    .title-country {
        font-size: 16px;
        color: #282828;
    }
    .title-country {
        margin-top: 10px;
    }
}

/* ========== MEDIA: 360px ========== */
@media (max-width: 360px) {
    .top-block {
        width: 100%;
        max-width: 350px;
        height: 50px;
        gap: 50px;
        padding: 0 8px;
    }
    .nav-news,
    .nav-products {
        font-size: 14px;
    }
    .account-section {
        padding: 124px 10px 100px;
        max-width: 95%;
    }
    .account-title,
    .email-title {
        font-size: 55px;
        margin-bottom: 30px;
    }
    .account-form {
        gap: 25px;
    }
    .form-input {
        font-size: 20px;
        padding: 5px 0;
    }
    .form-label {
        font-size: 20px;
    }
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: -20px;
        font-size: 14px;
    }
    .send-button {
        width: 125px;
        height: 38px;
        font-size: 20px;
        margin-top: 12px;
    }
    .basement {
        width: 300px;
        margin: 0 auto;
        margin-top: 100px;
    }
    .separator {
        width: 300px;
        height: 1px;
        background-color: #282828;
    }
    .basement-footer {
        width: 300px;
    }
    .title-copyright,
    .title-country {
        font-size: 12px;
        color: #282828;
    }
}