/**
 * Стили модального окна входа и регистрации
 */

.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-overlay.visible {
    display: flex;
}

.auth-modal {
    background: var(--bg-white, #fff);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray, #666);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.auth-modal-close:hover {
    color: var(--text-dark, #1a1a1a);
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.auth-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray, #666);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab:hover {
    color: var(--primary-color, #2c5364);
}

.auth-tab.active {
    color: var(--primary-color, #2c5364);
    border-bottom-color: var(--accent-color, #21b573);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a1a);
}

.auth-password-wrap {
    position: relative;
    display: flex;
}

.auth-password-wrap input {
    flex: 1;
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-gray, #666);
}

.auth-password-toggle:hover {
    color: var(--primary-color, #2c5364);
}

.auth-password-toggle .eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-field input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--accent-color, #21b573);
}

.auth-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin: 0;
    min-height: 1.2rem;
}

.auth-submit {
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
}
