/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.auth-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: #333;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.auth-form {
    display: none;
}

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

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.auth-input {
    width: 100%;
    padding: 0.8rem;
    padding-left: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    background-color: var(--primary-color-dark);
}

/* Menu Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.auth-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.separator {
    color: #333;
    margin: 0 0.5rem;
}

.auth-dropdown {
    position: relative;
    display: inline-block;
}

.auth-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.auth-dropdown:hover .auth-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.auth-dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 2rem;
}

.side-menu.active {
    right: 0;
}

.close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-icon:hover {
    color: #333;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.side-menu ul li {
    margin: 1rem 0;
}

.side-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.side-menu ul li a:hover,
.side-menu ul li a.active {
    color: var(--primary-color);
}

/* Menu Icon */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1002;
}

.menu-icon .line {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 1rem;
    }

    .auth-container {
        width: 95%;
        padding: 1.5rem;
    }

    .side-menu {
        width: 250px;
    }
}

/* Auth Message Styles */
.auth-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-message.error {
    background-color: #fff3f3;
    color: #dc3545;
    border: 1px solid #ffd7d7;
}

.auth-message.success {
    background-color: #f0fff0;
    color: #28a745;
    border: 1px solid #d7ffd7;
}

/* Forgot Password Link */
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
} 