/**
 * Auth Modal (Login/Register via SMS)
 * Дизайн з Figma
 */

/* Overlay */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

/* Modal Content */
.auth-modal__content {
    background: #fff;
    width: 580px;
    max-width: 90%;
    padding: 0 40px 40px;
    transform: translateY(-10px);
}

.auth-modal__inner {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.auth-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    border-bottom: 2px solid #F2F2F2;
}

.auth-modal__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: #000;
    margin: 0;
}

.auth-modal__close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.auth-modal__close svg {
    width: 100%;
    height: 100%;
}

/* Tabs */
.auth-modal__tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #F2F2F2;
    margin: -20px 0 0;
}

.auth-modal__tab {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #AEAEAE;
    padding: 15px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal__tab.active {
    color: #000;
    border-bottom-color: #000;
}

/* Text */
.auth-modal__text {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1;
    color: #000;
    margin: 0;
}

/* Form */
.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-modal__form.hidden {
    display: none;
}

.auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-modal__label {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    color: #000;
}

.auth-modal__input {
    width: 100%;
    height: 50px;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid #AEAEAE;
    border-radius: 5px;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000;
    transition: border-color 0.2s ease;
}

.auth-modal__input::placeholder {
    color: #AEAEAE;
}

.auth-modal__input:focus {
    outline: none;
    border-color: #000;
}

/* SMS Code Input */
.auth-modal__code-input {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 700;
}

/* Agreement Text */
.auth-modal__agreement {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.auth-modal__agreement a {
    color: #E48DBC;
    text-decoration: underline;
}

/* Button */
.auth-modal__button {
    width: 100%;
    padding: 16px 40px;
    background: #000;
    border: none;
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal__button:hover {
    background: #333;
}

.auth-modal__button:disabled {
    background: #AEAEAE;
    cursor: not-allowed;
}

/* Timer */
.auth-modal__timer {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-align: center;
    color: #666;
}

/* Error/Success Messages */
.auth-modal__message {
    padding: 12px;
    border-radius: 5px;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    text-align: center;
    display: none;
}

.auth-modal__message.error {
    background: #ffebee;
    color: #c62828;
}

.auth-modal__message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-modal__message.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal__content {
        padding: 0 20px 30px;
    }

    .auth-modal__inner {
        width: 100%;
    }

    .auth-modal__title {
        font-size: 28px;
    }

    .auth-modal__text {
        font-size: 16px;
    }
}
