/* Auth Page Styles */
.logo-link {
    color: white;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.auth-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    background: #f5f5f5;
}

.auth-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.auth-info {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #888;
    font-size: 0.8rem;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    display: block;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* User Menu in Header */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Icon Navigation */
.nav-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: background 0.2s;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-icon.active {
    background: rgba(255, 255, 255, 0.35);
}

/* Login button when standalone (not logged in) */
.header-nav > .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.header-nav > .nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.header-nav > .nav-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Notification Badge */
.nav-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: #e74c3c;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
}
