/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-modal-content {
    background: #17171B;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

#feedbackModal > div.auth-modal-content
{
    max-width: 640px;
}

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

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.auth-tab.active {
    color: #F7D046;
    border-bottom-color: #F7D046;
}

/* Auth Forms */
.auth-form {
    display: block;
}

.auth-form-group {
    margin-bottom: 24px;
}

.auth-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
}

.auth-form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: #1F1F24;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
    box-sizing: border-box;
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form-group input:focus {
    border-color: #F7D046;
    box-shadow: 0 0 0 3px rgba(247, 208, 70, 0.15);
}

.auth-form-group input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 59, 48, 0.6);
}

.auth-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: #1F1F24;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.auth-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form-group textarea:focus {
    border-color: #F7D046;
    box-shadow: 0 0 0 3px rgba(247, 208, 70, 0.15);
}

.auth-form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 59, 48, 0.6);
}

.auth-form-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
}

.auth-error {
    display: none;
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 59, 48, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
}

.user-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .user-menu {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .user-email {
        font-size: 0.85rem;
    }
}

