#auth-popup {
    font-family: 'Noto sans'
}

#auth-popup form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#auth-popup input[type="text"],
#auth-popup input[type="password"],
#auth-popup input[type="email"] {
    padding: 12px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

#auth-popup .auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

#auth-popup button,
#register-form button {
    background: #E75D5D;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
}

#auth-popup button:hover,
#register-form button:hover {
    background: #d54545;
}

#auth-popup button.quick-auth {
    background: transparent;
    color: #E75D5D;
    border: 1px solid #E75D5D;
    width: 100%;
}

#auth-popup button.quick-auth:hover {
    background: #E75D5D;
    color: white;
}

#auth-popup .bottom_link {
    display: block;
    text-align: center;
    color: #E75D5D;
    text-decoration: none;
    margin-top: 16px;
    font-size: 14px;
}

#auth-popup .forgot-pass {
    color: #807A8A;
    text-decoration: none;
    font-size: 12px;
    text-align: right;
}

#auth-popup .remember-login {
    display: flex;
    align-items: center;
    gap: 4px;
}

#auth-popup .remember-login input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    margin: 0;
}

#auth-popup .remember-login input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    background: #EEEFF3;
    border: 1px solid #807A8A;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#auth-popup .remember-login input[type="checkbox"]:checked {
    background: #E75D5D;
    position: relative;
}

#auth-popup .remember-login input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath stroke='%23fff' stroke-width='2' d='M1 5.083 4.333 8 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}


#auth-popup .remember-login {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 14px;
}

#auth-popup .form-container.hidden {
    display: none;
}

#auth-popup .popup-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E75D5D;
    position: relative;

    display: flex;
    align-items: center;
}

#auth-popup .popup-title {
    font-size: 18px;
    line-height: 1.4;
    position: relative;
}

#auth-popup .back-btn {
 

    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: black;
}

/* Добавляем стили состояний кнопок */
#auth-popup button[data-state] {
    position: relative;
    transition: all 0.3s ease;
}

#auth-popup button[data-state="loading"] {
    background: #cccccc;
    pointer-events: none;
    color: #666;
}

#auth-popup button[data-state="loading"]::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading 0.8s linear infinite;
}
#auth-popup .form-container {
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;
}

#auth-popup .form-container.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#auth-popup .form-container:not(.hidden) {
    animation: formSlideIn 0.3s ease forwards;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#auth-popup button[data-state="success"] {
    background: #4CAF50;
}

#auth-popup button[data-state="error"] {
    background: #f44336;
}

@keyframes button-loading {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

#auth-popup .form-container.hidden {
opacity: 0;
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
}

#auth-popup .form-container:not(.hidden) {
animation: formSlideIn 0.3s ease forwards;
}

@keyframes formSlideIn {
from {
    opacity: 0;
    transform: translateY(10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

#auth-popup input.error {
border-color: rgba(217, 95, 104, 1);
color: rgba(217, 95, 104, 1);
}


#auth-popup input[name="VERIFY_CODE"] {
text-align: center;
letter-spacing: 2px;
font-size: 18px;
}

#auth-popup #verify-form .recovery-note {
color: rgba(217, 95, 104, 1);
text-align: center;
}




#register-form {
font-family: 'Noto sans'
}

#register-form form {
display: flex;
flex-direction: column;
gap: 8px;
}

#register-form input[type="email"] {
padding: 12px;
border: 1px solid #ddd;
width: 100%;
box-sizing: border-box;
}

#register-form .required-text {
color: #D95F68;
font-size: 12px;
text-align: left;
}

#register-form button {
background: #E75D5D;
color: white;
border: none;
padding: 12px;
cursor: pointer;
font-weight: bold;
margin-top: 8px;
}

#register-form button:hover {
background: #d54545;
}

#register-form .login {
display: block;
text-align: center;
color: #E75D5D;
text-decoration: none;
margin-top: 16px;
font-size: 14px;
}

#register-form .login:hover {
text-decoration: underline;
}

#register-form .fancybox-skin {
background: #F9F4F4;
}

#thankyou-form {
    text-align: center;
    padding: 40px 20px;
}

#thankyou-form .popup-header {
    border: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#thankyou-form .success-icon {
    animation: scaleIn 0.5s ease-out;
}

#thankyou-form .popup-title {
    font-size: 24px;
    color: #333;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

#thankyou-form .thankyou-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

#thankyou-form .primary-button {
    background: #E75D5D;
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#thankyou-form .primary-button:hover {
    background: #d54545;
    transform: translateY(-2px);
}

#thankyou-form .secondary-button {
    color: #E75D5D;
    text-decoration: none;
    font-weight: bold;
    padding: 16px 32px;
    border: 2px solid #E75D5D;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#thankyou-form .secondary-button:hover {
    background: rgba(231, 93, 93, 0.1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.thankyou-message {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0 32px;
    padding: 0 20px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-text-center {
    text-align: center !important;
}