/* Authentication Modal Styles */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.auth-tab:hover {
    color: #000;
}

.auth-tab.active {
    color: #000;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

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

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

.auth-form h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
}

/* Google Button */
.auth-google-btn {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.auth-google-btn:hover {
    background: #f8f8f8;
    border-color: #bbb;
}

.auth-google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    padding: 0 15px;
}

/* Input Groups */
.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-row {
    display: flex;
    gap: 15px;
}

.auth-input-row .auth-input-group {
    flex: 1;
}

.auth-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

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

.auth-input-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Checkbox Group */
.auth-checkbox-group {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.auth-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.auth-checkbox-group label {
    font-size: 13px;
    color: #666;
}

.auth-checkbox-group a {
    color: #000;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: #333;
}

/* Footer */
.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.auth-forgot-password {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.auth-forgot-password:hover {
    color: #000;
    text-decoration: underline;
}

/* Header User Menu Styles */
#header-user-menu {
    display: none;
    align-items: center;
    gap: 15px;
    position: relative;
}

#header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

#header-user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    padding-top: 10px;
    background: transparent;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-menu-dropdown::before {
    content: '';
    display: block;
    height: 10px;
}

.user-menu-dropdown-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#header-user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    background: white;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.user-menu-dropdown a:hover {
    background: #f5f5f5;
}

.user-menu-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-menu-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    color: #d32f2f;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-menu-dropdown hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: white;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .auth-input-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Notification styles */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
