/* Auth Modal Styles */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.auth-modal-overlay.active,
.auth-modal.active ~ .auth-modal-overlay {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    z-index: 1;
}

.auth-modal-close:hover {
    background-color: #f5f5f5;
    color: #000;
}

.auth-modal-content {
    padding: 40px 32px 32px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #005BFF;
    border-bottom-color: #005BFF;
}

.auth-tab:hover:not(.active) {
    color: #333;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label:not(.auth-checkbox) {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="tel"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #005BFF;
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #005BFF;
}

.auth-link {
    color: #005BFF;
    text-decoration: none;
    font-size: 14px;
    transition: text-decoration 0.2s;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    margin-bottom: 24px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 14px;
}

.auth-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-social svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-modal {
        width: 95%;
        max-height: 95vh;
    }

    .auth-modal-content {
        padding: 32px 24px 24px;
    }

    .auth-tab {
        padding: 12px;
        font-size: 14px;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

