﻿:root {
    --auth-border: 1px solid transparent;
    --auth-bg: linear-gradient(90deg, rgba(0, 28, 156, 0.7) 0%, rgba(0, 24, 76, 0.7) 100%);
    --auth-page-bg: #020b1f;
}

.auth-mobile-container {
    padding: 20px;
    padding-top:0px;
}

    .auth-mobile-container h1 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 120%;
        color: var(--main-page-text-color);
        margin-bottom: 20px;
    }

.auth-mobile-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #DBDCE1;
    margin-bottom: 8px;
}

.auth-mobile-forgot-password {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #6280EB;
    text-decoration: none;
}

.auth-mobile-input {
    border-radius: 12px;
    height: 46px;
    background: var(--auth-bg);
    border: 1px solid transparent;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    caret-color: #FFFFFF;
    color: #FFFFFF;
    transition: 0.3s;
}

    .auth-mobile-input:hover {
        border-color: #A4B7FC;
    }

    .auth-mobile-input:focus {
        color: #FFFFFF;
        box-shadow: none;
        background: var(--auth-bg);
        border: 1px solid #A4B7FC;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(4.8px);
        -webkit-backdrop-filter: blur(4.8px);
    }

.auth-mobile-form {
    width: 100%;
}

.auth-mobile-sign-in-with-btn {
    width: 168px;
    height: 56px;
    gap: 10px;
    opacity: 1;
    border-width: 1px;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #6280EB;
}

.back-arrow {
    margin-top: 10px;
    margin-bottom: 10px;
}

.auth-mobile-button {
    height: 54px;
    margin-top: 1.25rem;
    top: 400px;
    left: 32px;
    opacity: 1;
    gap: 8px;
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--btn-bg-color);
    color: #DBDCE1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-mobile-small-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #DBDCE1;
    width: 90%; /* обмежує ширину контейнера */
    white-space: normal;
}

.auth-mobile-login-link {
    color: #6280EB;
    text-decoration: none;
}

.auth-mobile-error-label {
    color: #F53504;
}

.auth-mobile-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--main-page-text-color);
    /*    font-size: 1.5rem;*/
    cursor: pointer;
    font-size: 0.875rem; /* 30% менше */
    z-index: 2;
}

.auth-mobile-toggle-password-container {
    position: relative;
}

.auth-mobile-sign-in-with {
    color: #A4B7FC;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
}

    .auth-mobile-sign-in-with span {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .auth-mobile-sign-in-with hr {
        border: 1px solid #A4B7FC;
        flex-grow: 1;
    }

.auth-mobile-rememberme-label-margin{
    margin-bottom:0px;
}

.auth-mobile-password-changed-container {
    height: 44px;
    background: linear-gradient(#00115D);
    padding: 12px;
    margin-bottom:20px;
    transition: opacity 0.5s ease;
    width:255px;
    font-size:14px;
}
.auth-mobile-change-password-text-size {
    font-size: 14px;
    text-align: center;
}
.auth-mobile-password-changed-container.hidden {
    opacity: 0; 
    pointer-events: none; 
}

.auth-mobile-terms-cards {
    padding:12px;
    min-height: 396px;
    overflow-y: auto;
    border: 1px solid #444;
    color: #e0e0e0;
    background: linear-gradient(270deg, rgba(0, 24, 76, 0.4) 0%, rgba(0, 28, 156, 0.4) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border-radius: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
    border-style: solid;
    border-width: 1px;
    border-color: #003D7B;
    border-radius: 24px;
    gap: 20px;
    /* додає простір під скрол */
    box-sizing: content-box;
}

.auth-mobile-terms-card-headering {
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
}

.auth-mobile-terms-line {
    background-color: #6280EB;
    height: 2px;
    width: 100%;
    display: block;
    
}

.auth-mobile-terms-cards-wrapper {
    overflow-y: auto;
    height: auto;
    margin-bottom:20px;
}

#agreeButton:hover {
    background-color: #6280EB;
    transform: translateY(-2px);
}

#agreeButton:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.auth-mobile-terms-body {
  height: 100vh;
  background: var(--auth-page-bg);
  background-repeat: no-repeat;
}

.auth-mobile-margin-element {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom:24px;
}

.auth-mobile-margin-element-register {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: 24px;
}
/* Сховати скролбар у Webkit-браузерах (Chrome, Safari, Edge) */
.scroll-hidden::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Для Firefox */
.scroll-hidden {
    scrollbar-width: none; /* сховати полосу прокрутки */
    -ms-overflow-style: none; /* для IE/Edge */
}
.auth-mobile-agree-btn-position {

    bottom: 10px;
    left: 0;
    width: 100%;
    margin-bottom: 40px;
}

@media (max-height: 844px) {
    .auth-mobile-margin-element-register {
        position: static;
        bottom: auto;
        left: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}